-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Custom Icons can't use fill color attributes #3420
Custom Icons can't use fill color attributes #3420
Comments
Hi, I'm not sure I understand your issue but I assume you're using custom SVG icons in your project that define fills using inline attributes. If I'm right, then yes, CKEditor uses CSS to control fills of the icons which allows an easy single-line-of-code customization (like in our theme customization guide). This is one of the assumptions of the system. And yes, this way of controlling the colors will probably override your all You can override our CSS rules with your custom colors in CSS, e.g. by applying CSS classes to |
Only override the fill for elements that don't declare one. Fixes #206
@michaeldjeffrey If you are looking for other easy way to fix it, just use CSS Specificity power and add inline style in the
|
@dkonopka That's the fix I'm employing now. The workflow I'm aiming for (if I can be so selfish) is to be able to take an icon from a designer and now have to fiddle with how their colors were applied. It appears the reason I submitted a PR-207 that only declares the fill if the element does declare it itself. Thanks for all the work you guys put into this project though, it's very much appreciated. |
Fix: Only override the `fill` for icons that don't declare one. Closes #206. Thanks to @michaeldjeffrey!
Other: Improved SVG icons size. See ckeditor/ckeditor5-theme-lark#206.
Other: Improved SVG icons size. See ckeditor/ckeditor5-theme-lark#206.
Other: Improved SVG icons size. See ckeditor/ckeditor5-theme-lark#206.
Other: Improved SVG icons size. See ckeditor/ckeditor5-theme-lark#206.
Other: Improved SVG icons size. See ckeditor/ckeditor5-theme-lark#206.
Other: Improved SVG icons size. See ckeditor/ckeditor5-theme-lark#206.
Other: Improved SVG icons size. See ckeditor/ckeditor5-theme-lark#206.
Other: Improved SVG icons size. See ckeditor/ckeditor5-theme-lark#206.
Other: Improved SVG icons size. See ckeditor/ckeditor5-theme-lark#206.
Other: Improved SVG icons size. See ckeditor/ckeditor5-theme-lark#206.
Other: Improved SVG icons size. See ckeditor/ckeditor5-theme-lark#206.
Other: Improved SVG icons size. See ckeditor/ckeditor5-theme-lark#206.
Other: Improved SVG icons size. See ckeditor/ckeditor5-theme-lark#206.
Other: Improved SVG icons size. See ckeditor/ckeditor5-theme-lark#206.
Internal: Created the `clean-up-svg-icons` npm task that optimizes SVG icons. Added SVGO to npm dependencies. Updated the Development Environment guide (see ckeditor/ckeditor5-theme-lark#206).
User defined svg icons cannot use
fill
as an attribute to set their color.will never be red unless the color set by a parent is red.
The text was updated successfully, but these errors were encountered: