Skip to content

Commit

Permalink
minor #2275 Fix a typo in UX Icons docs (dfridrich)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Kocal committed Oct 15, 2024
2 parents 4f6de44 + 144eaf7 commit c9bf5ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Icons/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ define the HTML attributes added to the ``<svg>`` element:
{{ ux_icon('user-profile', {class: 'w-4 h-4'}) }}
{# renders <svg class="w-4 h-4"> ... </svg> #}

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


Expand Down

0 comments on commit c9bf5ee

Please sign in to comment.