aboutsummaryrefslogtreecommitdiff
path: root/site/docs/4.4/utilities/close-icon.md
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2019-11-26 19:12:00 +0200
committerGitHub <[email protected]>2019-11-26 19:12:00 +0200
commit593574d510050dc2d5eeafe70a58ae182f020480 (patch)
tree043a163d6c712121ca0fe1f34c419ab592b03185 /site/docs/4.4/utilities/close-icon.md
parentd61bba584f89c7df0d780a9ff214a58f7b58cb94 (diff)
downloadbootstrap-4.4.0.tar.xz
bootstrap-4.4.0.zip
Release v4.4.0 (#29735)v4.4.0
Diffstat (limited to 'site/docs/4.4/utilities/close-icon.md')
-rw-r--r--site/docs/4.4/utilities/close-icon.md15
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 000000000..3a8cb3c44
--- /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">&times;</span>
+</button>
+{% endcapture %}
+{% include example.html content=example %}