2
0
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:
Patrick H. Lauke
2015-10-16 00:56:59 +01:00
parent 724bf86288
commit 9302fd4fd4
3 changed files with 1 additions and 11 deletions
+1 -2
View File
@@ -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">&times;</span>
<span class="sr-only">Close</span>
</button>
{% endexample %}