File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,14 @@ those will utilize the first link in the contents.
104
104
that needs to be described, consider placing it below the heading. If it's at the top with an alt text,
105
105
it may be confusing for screen readers if it comes before the title of the card.
106
106
- ** Centered text** can be harder to read, so avoid longer card text that's centered.
107
- - Make sure ** links and buttons** are descriptive, using ` ilw-sr-only ` if needed to add context.
107
+ - Make sure ** links and buttons** are descriptive, using ` ilw-sr-only ` if needed to add context. For example:
108
+
109
+ ``` html
110
+ <a href =" #" class =" ilw-button" >Learn More <span class =" ilw-sr-only" >About Cards</span ></a >
111
+ ```
112
+
113
+ Note that [ WCAG Label in Name] ( https://www.w3.org/WAI/WCAG21/Understanding/label-in-name ) specifies that the
114
+ name and label must begin with the same words, so the hidden portion should be at the end.
108
115
109
116
## External References
110
117
You can’t perform that action at this time.
0 commit comments