mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-11 18:02:28 +03:00
Move close icon to components in docs (#28512)
* Move close icon to components * Remove redundant float from close
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
---
|
||||
layout: docs
|
||||
title: Close icon
|
||||
description: Use a generic close icon for dismissing content like modals and alerts.
|
||||
group: components
|
||||
---
|
||||
|
||||
**Be sure to include text for screen readers**, as we've done with `aria-label`.
|
||||
|
||||
{{< example >}}
|
||||
<button type="button" class="close" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
{{< /example >}}
|
||||
Reference in New Issue
Block a user