File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ echo $FA->get_svg('fas fa-file', [
71
71
| class | Adds classes to the SVG tag |
72
72
| default_class | If set to ` false ` , the default CSS class won't be added to the SVG tag. Deafult: ` true ` . |
73
73
| 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 |
74
75
| role | The value of the ` role ` attribute in the SVG tag. Default: ` img ` |
75
76
| fill | The value of the ` fill ` attribute in the ` <path> ` inside the SVG. Default: ` currentColor ` |
76
77
@@ -79,3 +80,4 @@ echo $FA->get_svg('fas fa-file', [
79
80
80
81
* ` role="img" ` is added to the SVG tag by default
81
82
* ` 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> `
You can’t perform that action at this time.
0 commit comments