Skip to content

Commit ccf0c8e

Browse files
Update readme.md
1 parent f779829 commit ccf0c8e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ echo $FA->get_svg('fas fa-file', [
7171
| class | Adds classes to the SVG tag |
7272
| default_class | If set to `false`, the default CSS class won't be added to the SVG tag. Deafult: `true`. |
7373
| title | Adds a `<title>` inside the SVG tag for semantic icons |
74+
| title_id | Adds an `id` attribute to `<title>` and adds `aria-labelledby` on the SVG tag with the same value |
7475
| role | The value of the `role` attribute in the SVG tag. Default: `img` |
7576
| fill | The value of the `fill` attribute in the `<path>` inside the SVG. Default: `currentColor` |
7677

@@ -79,3 +80,4 @@ echo $FA->get_svg('fas fa-file', [
7980

8081
* `role="img"` is added to the SVG tag by default
8182
* `aria-hidden="true"` is added to the SVG tag by default unless a `<title>` is set
83+
* You can add `aria-labelledby` to the SVG tag and `id` to `<title>`

0 commit comments

Comments
 (0)