]>
Commit | Line | Data |
---|---|---|
91e44d91 S |
1 | --- |
2 | layout: docs | |
3 | title: Close icon | |
4 | group: utilities | |
5 | --- | |
6 | ||
7 | 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`. | |
8 | ||
9 | {% example html %} | |
10 | <button type="button" class="close" aria-label="Close"> | |
11 | <span aria-hidden="true">×</span> | |
12 | </button> | |
13 | {% endexample %} |