Skip to content

Commit c9bf5ee

Browse files
committed
minor #2275 Fix a typo in UX Icons docs (dfridrich)
This PR was merged into the 2.x branch. Discussion ---------- Fix a typo in UX Icons docs | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Issues | | License | MIT There is an error (below is an exception) if copying snippet from [UX Icons docs](https://symfony.com/bundles/ux-icons/current/index.html#loading-icons). This can confuse some less experienced programmers. ``` A mapping key must be followed by a colon (:). Unexpected token "operator" of value "-" ("punctuation" expected with value ":"). Commits ------- 144eaf7 Fix a typo in UX Icons docs
2 parents 4f6de44 + 144eaf7 commit c9bf5ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Icons/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ define the HTML attributes added to the ``<svg>`` element:
8080
{{ ux_icon('user-profile', {class: 'w-4 h-4'}) }}
8181
{# renders <svg class="w-4 h-4"> ... </svg> #}
8282

83-
{{ ux_icon('user-profile', {height: '16px', width: '16px', aria-hidden: true}) }}
83+
{{ ux_icon('user-profile', {height: '16px', width: '16px', 'aria-hidden': true}) }}
8484
{# renders <svg height="16" width="16" aria-hidden="true"> ... </svg> #}
8585

8686

0 commit comments

Comments
 (0)