mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-10 22:24:19 +01:00
14 lines
355 B
Markdown
14 lines
355 B
Markdown
|
---
|
||
|
layout: docs
|
||
|
title: Close icon
|
||
|
group: utilities
|
||
|
---
|
||
|
|
||
|
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>
|
||
|
</button>
|
||
|
{% endexample %}
|