diff options
Diffstat (limited to 'site/docs/4.4/utilities/close-icon.md')
-rw-r--r-- | site/docs/4.4/utilities/close-icon.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/site/docs/4.4/utilities/close-icon.md b/site/docs/4.4/utilities/close-icon.md new file mode 100644 index 0000000000..3a8cb3c445 --- /dev/null +++ b/site/docs/4.4/utilities/close-icon.md @@ -0,0 +1,15 @@ +--- +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">×</span> +</button> +{% endcapture %} +{% include example.html content=example %} |