mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-05 16:42:29 +03:00
`aria-label="close" instead of sr-only span`
shorter, neater, well supported
This commit is contained in:
@@ -56,10 +56,10 @@
|
||||
<h3 id="helper-classes-close">Close icon</h3>
|
||||
<p>Use the generic close icon for dismissing content like modals and alerts.</p>
|
||||
<div class="bs-example" data-example-id="close-icon">
|
||||
<p><button type="button" class="close"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button></p>
|
||||
<p><button type="button" class="close" aria-label="Close"><span aria-hidden="true">×</span></button></p>
|
||||
</div>
|
||||
{% highlight html %}
|
||||
<button type="button" class="close"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
||||
<button type="button" class="close" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user