Skip to content

Commit 0d2a283

Browse files
committed
[Icons] explain svg colors and improve example configuration
1 parent e653f48 commit 0d2a283

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/Icons/doc/index.rst

+3
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ define the HTML attributes added to the ``<svg>`` element:
8383
{{ ux_icon('user-profile', {height: '16px', width: '16px', 'aria-hidden': true}) }}
8484
{# renders <svg height="16" width="16" aria-hidden="true"> ... </svg> #}
8585

86+
Typically, icon SVG use `fill='currentColor'` to inherit the color of the containing
87+
element. You can use CSS to set the color either on the containing element or in a class
88+
or style attribute of the icon itself.
8689

8790
Icon Sets
8891
~~~~~~~~~

0 commit comments

Comments
 (0)