Skip to content
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

Closed
8 tasks done
pat270 opened this issue Mar 16, 2021 · 6 comments · Fixed by #4171
Closed
8 tasks done

@clayui/css update mixins to use the clay-css pattern #3987

pat270 opened this issue Mar 16, 2021 · 6 comments · Fixed by #4171
Assignees
Labels
3.x comp: clay-css Issues related to Clay CSS type: feature request Issues that are open to adding new features

Comments

@pat270 pat270 added type: feature request Issues that are open to adding new features comp: clay-css Issues related to Clay CSS 3.x labels Mar 16, 2021
@pat270 pat270 self-assigned this Mar 16, 2021
pat270 added a commit to pat270/clay that referenced this issue Mar 24, 2021
pat270 added a commit to pat270/clay that referenced this issue Mar 24, 2021
…ixin should use new keys. This allows variable theme overwrites using deprecated keys to still win.

issue liferay#3987
@matuzalemsteles
Copy link
Member

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?

@pat270
Copy link
Member Author

pat270 commented May 18, 2021

@matuzalemsteles This would be good.

@matuzalemsteles
Copy link
Member

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.

@pat270
Copy link
Member Author

pat270 commented Jul 21, 2021

@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.

@matuzalemsteles
Copy link
Member

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 😅

@github-actions
Copy link

This issue has been merged and will be released in DXP at https://issues.liferay.com/browse/LPS-130572

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment