Future of Clarity Angular #5367
-
I see that you are putting a lot of work in Clarity core which is awesome. At the same time I see that first bug reports are getting closed as wontfix because of the move to core (e.g. #5299). Does this move to framework independence mean that you will no longer maintain components like the angular wizard or datagrid and developers have to build their own core component wrappers for this? I really really like the quality and look and feel of Clarity and the fast and positive response to community requests. So it would be awesome if you keep developing Angular components on top of the core components. :) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Hi @dorthrithil, I'm finishing up a blog post in the next couple days to describe some of these things. Since that will cover most of your questions above, I'll just give a quick response for the immediate moment.
Clarity Angular has some features that are not going to be identical in Clarity Core, particularly where Clarity Angular maintains some internal state for an application. We are working on adoption support that will help bridge the gap so you aren't left with questions how to update your applications when more complex components are available (like Datagrid or Tree View). In some discussions with teams the changes are going to enable a greater degree of control and minimize some frustrations with the existing behaviors when applications try to use components in new ways, so overall this should be a big improvement. At the moment, we are not planning to build Angular components on top of Clarity Core. We tried earlier this year and it turned out to cause more problems than it solved. It also was slower because we were writing shim layers between Clarity Angular and Clarity Core which were adding to the change detection cycles and increased the surface area for bugs and lifecycle issues. Using Clarity Core directly is much faster and less code to maintain. I hope this helps clarify and we'll be adding more to our blog in the next couple months as this is not an immediate change but an evolution of the design system that will take some time. Our goal is to support teams in using Clarity Angular as long as they need and then adopting the Clarity Core components (see my upcoming blog post) on their timeline to get the new capabilities and improvements through Core. |
Beta Was this translation helpful? Give feedback.
-
Blog post is up! https://medium.com/claritydesignsystem/level-up-your-application-by-adopting-clarity-core-8a5f3f863139 |
Beta Was this translation helpful? Give feedback.
-
Everything in Clarity Core can be used in an existing Clarity Angular project. There are some things that may conflict (because the Clarity UI/Angular CSS has a lot of styles that are generic) so we're working on how to help block that from happening, but otherwise things like layouts and design tokens are agnostic to Angular and we'd love to see people using them. As far as new Angular components, the answer is we're not investing in additional Clarity Angular components, only to replace them a few months later. We'd like to see all external contributions also be for Core, but we need to enhance our guidelines and guidance before we're ready to accept a lot of larger contributions. |
Beta Was this translation helpful? Give feedback.
Hi @dorthrithil, I'm finishing up a blog post in the next couple days to describe some of these things. Since that will cover most of your questions above, I'll just give a quick response for the immediate moment.