0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-04 16:24:22 +01:00
Bootstrap/docs/4.0/utilities/close-icon.md

17 lines
424 B
Markdown
Raw Normal View History

---
layout: docs
title: Close icon
2017-05-28 20:25:59 +02:00
description: Use a generic close icon for dismissing content like modals and alerts.
group: utilities
2017-05-28 20:25:59 +02:00
toc: true
---
2017-05-28 20:25:59 +02:00
**Be sure to include text for screen readers**, as we've done with `aria-label`.
2018-03-14 16:44:38 +01:00
{% capture example %}
<button type="button" class="close" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
2018-03-14 16:44:38 +01:00
{% endcapture %}
{% include example.html content=example %}