We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62f306d commit a6f7b46Copy full SHA for a6f7b46
site/lib/src/components/material_icon.dart
@@ -26,7 +26,10 @@ class MaterialIcon extends StatelessComponent {
26
classes: ['material-symbols', ...classes].toClasses,
27
attributes: {
28
'title': ?title,
29
- 'aria-label': ?(label ?? title),
+ if (label ?? title case final labelToUse?)
30
+ 'aria-label': labelToUse
31
+ else
32
+ 'aria-hidden': 'true',
33
'translate': 'no',
34
},
35
[text(id)],
0 commit comments