-
Notifications
You must be signed in to change notification settings - Fork 483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@clayui/css update mixins to use the clay-css
pattern
#3987
Comments
…win over new keys issue liferay#3987
…ixin should use new keys. This allows variable theme overwrites using deprecated keys to still win. issue liferay#3987
Hey @pat270 I was thinking a little about it, once we finished it, we could publish a post on clayui.com to add more information about this change, the benefits, what changes, the advantages, how to migrate, examples... what do you think? |
@matuzalemsteles This would be good. |
…-css` pattern issue liferay#3987
…se `clay-css` pattern fixes liferay#3987
Hey @pat270 since we have that ready and the last one has been merged, it would be good to write a blog post on clayui.com to explain this change and plans to migrate to mixins users, it would also be good to have an idea of how to remove backward compatibility with variables old ones. In that case it would be to get an idea of when we plan to do this, whether it's the next major version or two new major versions from here. |
@matuzalemsteles Sure I can start working on a blog post. Removing backward compatibility is easy, we just need to delete some setters in the mixins. I suppose we can remove in the next major version and supply the backward compatible mixins to whoever needs it. They can be easily overridden. If the markup changes a lot, then we will have a problem. |
Perfect @pat270! Depending on the complexity this can involve in a codebase migration from Clay users that use themes, for example, we can keep this for one more major version if necessary, I expect that we won't have too many markup changes in the next major version 😅 |
This issue has been merged and will be released in DXP at https://issues.liferay.com/browse/LPS-130572 |
The
clay-css
pattern allows more customization through Sass maps without having to declare a variable name for every property. It also must be backward compatible.clay-form-control-variant
old keys should win over new keys #4002clay-select-variant
to useclay-css
pattern, also deprecated keys should win over new keys #4046clay-label-size
andclay-label-variant
convert to use new (easier to remember) Sass map keys. The old keys will still work and win over new keys. #4070sheet-footer-btn-block
andclay-loading-animation-variant
to useclay-css
pattern #4171clay-nav-variant
convert to use new (easie… #4072clay-menubar-vertical-expand
to use theclay-css
pattern #3988clay-menubar-vertical-variant
to use theclay-css
pattern #3998sheet-footer-btn-block
andclay-loading-animation-variant
to useclay-css
pattern #4171The text was updated successfully, but these errors were encountered: