-
Notifications
You must be signed in to change notification settings - Fork 65
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
Feature request: add class to rect main key to enable css easier styling #129
Comments
Is this only a problem when the key sides option is used? Because otherwise, |
I haven't checked all codepaths without key sides, so most likely is only related with that one |
It looks like when you enable key sides, you get (While this didn't seem intuitive to me that the outer rectangle uses different classes in the two cases, it makes sense when we look at how the Given above, if we add |
@magicDGS do you have any thoughts on above? Alternatively, if you are happy with the |
When I open this ticket I was doing some explorative work for the styling with and without key-sides; the problem that I have faced was that some styles were just applied differently when you activate or deactivate the sides, and that makes the css not really interchangeable when you enable the flag. So I guess that adding the class just with key-sides activated is not really an option as it adds yet another difference when you are styling a version with and without sides together. In any case, I am fine with a little more work on my custom css if you prefer not to bloat with many classes the SVG unless need it, but a solution from my POV is to have consistent classes that are independent of the key-side option. Maybe that is a different ticket than this one, so feel free to close this ticket, open a different one or rename this to be more explicit about the consistency on classes. |
When trying to style with css something like the following key:
To style the middle rect on some nested selector you need to use a discriminator as follow:
It will be really nice in such cases to have a class such
main
(maybe there would be a better name) to avoid such complex selection. Maybe I am missing a better way of doing it, so feel free to close if that is the case. Thanks! 😊The text was updated successfully, but these errors were encountered: