-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Always use svg series icon #5214
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @cssprop --icon-color - the color of the icon | ||
* @cssprop --icon-background-color - the background color of the icon | ||
* @cssprop --deadline-icon-color - the color of the deadline icon | ||
* @cssprop --deadline-icon-background-color - the background color of the deadline icon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these specified in a general css file? Why not add them here to make this component self contained?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now it is a shadowless lit component, which forces all style definitions to be in the global scope.
Changing it to use the shadow dom would not allow any use of globally defined classes. In this this would mean we had to redefine the material design icons used within this class. I do not think that is desired.
Sadly there is no way to 'partially' use the shadow dom. Which is why we also aren't using the shadow dom in most other components for now.
This pull request fixes #5213
It were actually to separate bugs:
The fix removes the simplified icon, always using the svg version.
The amount of html remains limited for non loaded series because the svg code is moved to a web component.
Closes #5213