mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-08 17:22:31 +03:00
Remove redundant .sr-only text for Close buttons
Since `aria-label` is used, it's not necessary anymore.
This commit is contained in:
@@ -149,12 +149,11 @@ Ensure that any meaning conveyed through color is also conveyed in a format that
|
||||
|
||||
## Close icon
|
||||
|
||||
Use a generic close icon for dismissing content like modals and alerts. **Be sure to include screen reader text when you can** as we've done with `.sr-only`.
|
||||
Use a generic close icon for dismissing content like modals and alerts. **Be sure to include text for screen readers**, as we've done with `aria-label`.
|
||||
|
||||
{% example html %}
|
||||
<button type="button" class="close" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
<span class="sr-only">Close</span>
|
||||
</button>
|
||||
{% endexample %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user