diff options
Diffstat (limited to 'site/content/docs/4.6/utilities/close-icon.md')
-rw-r--r-- | site/content/docs/4.6/utilities/close-icon.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/site/content/docs/4.6/utilities/close-icon.md b/site/content/docs/4.6/utilities/close-icon.md new file mode 100644 index 0000000000..8329fd94b0 --- /dev/null +++ b/site/content/docs/4.6/utilities/close-icon.md @@ -0,0 +1,14 @@ +--- +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`. + +{{< example >}} +<button type="button" class="close" aria-label="Close"> + <span aria-hidden="true">×</span> +</button> +{{< /example >}} |