Replies: 2 comments
-
Our initial aiming for components and patterns includes:
Removing these pattern components from The biggest downside I see to removing these pattern components from Some things I think we're high confidence on:
A few open questions I still have:
|
Beta Was this translation helpful? Give feedback.
-
@yurm04 This is an interesting one. I would also be very worried about the impact of removing large components. I think the negative impact there would be pretty high. I also would challenge the premise a little bit. What you are calling a pattern is almost always just functionality. Some components have very simply functions and others are very complex. That is totally ok in my mind. The functionality of something like a Should some of our complex components be more flexible and composable...yes. But should we try and rid ourselves of those complexities and only focus on primitives...I don't think so. Some of these bits of interaction and experience are absolutely foundational to the admin experience and I think should be codified inside of Polaris. Evolving those will always be difficult but I think we should just embrace that. |
Beta Was this translation helpful? Give feedback.
-
At a high level,
polaris-react
today is a combination of two kinds of components:More often than not, these large monolithic components are actually UI
patterns
in disguise that are conveniently packaged up into reusable and customizable components that can be easily dropped into any codebase.Issues
These large pattern components are:
How Might We...
Reduce the number of inflexible, monolithic components in
polaris-react
and still provide designers and developers with the tools to reuse established UI patterns anywhere in the admin?Beta Was this translation helpful? Give feedback.
All reactions