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

make attribute replacement easy (especially for "class" attributes) #84

Open
iham opened this issue Mar 30, 2022 · 0 comments
Open

make attribute replacement easy (especially for "class" attributes) #84

iham opened this issue Mar 30, 2022 · 0 comments

Comments

@iham
Copy link
Member

iham commented Mar 30, 2022

every theming framework I know - bootstrap, foundation, tailwind - relies heavily on interchangeable classes to style UI elements.
since plone 6 uses Bootstrap 5, it would be very useful to be able to replace css classes for a theme on the fly using diazo.

diazo promises to keep you away from xsl, but all solutions I found are heavy xsl rules, copies of attribute contents, mind boggling stuff.

eg: if you have this:

<div class="class-a CLASS-B">...</div>

and want that to become this:

<div class="class-a CLASS-C">...</div>

maybe adding params to <drop>|<replace>|<merge>?

a better DX would be awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant