lb-dk-2023/assets/bootstrap-4.5.2/site/docs/4.5/utilities/close-icon.md

16 lines
414 B
Markdown
Raw Normal View History

2023-08-15 17:02:21 +02:00
---
layout: docs
title: Close icon
description: Use a generic close icon for dismissing content like modals and alerts.
group: utilities
---
**Be sure to include text for screen readers**, as we've done with `aria-label`.
{% capture example %}
<button type="button" class="close" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
{% endcapture %}
{% include example.html content=example %}