Icons are visual artifacts to communicate, guide and inform the user. They can help users find their way through an interface, make the meaning of buttons clearer, and prepare users for what is happening next. Icons work at their best when they're consistent, familiar and recognizable to the user.
|Web resource key:||
|AMD Module key:||N/A|
You should adjust
aria-label to suit the meaning and usability
of your scenario. If you are using it in a button which has the button's
action as visible text (i.e. the icon is decorative), you should leave the
icon's label empty. However if you are creating an icon-only control (the
icon is informative), you should include the alternative text.
Use for an icon-only control.
Icons are simply
span elements with an image or icon font
aria-label as assistive/alternative text, and
HTML - old pattern
This pattern was used before AUI 9.6.0. While still working, it's not
encouraged anymore because
aria-label attributes have better screen reader support.
HTML - preferred pattern
Use when a text following the icon describes its purpose.
Vector icon sizes: