diff --git a/scss/_spinners.scss b/scss/_spinners.scss index 9489bd8611..ed7e2bc650 100644 --- a/scss/_spinners.scss +++ b/scss/_spinners.scss @@ -10,8 +10,6 @@ display: inline-block; width: $spinner-width; height: $spinner-height; - overflow: hidden; - text-indent: -999em; vertical-align: text-bottom; border: $spinner-border-width solid currentColor; border-right-color: transparent; @@ -42,8 +40,6 @@ display: inline-block; width: $spinner-width; height: $spinner-height; - overflow: hidden; - text-indent: -999em; vertical-align: text-bottom; background-color: currentColor; border-radius: 50%; diff --git a/site/docs/4.1/components/spinners.md b/site/docs/4.1/components/spinners.md index d150670029..c165945727 100644 --- a/site/docs/4.1/components/spinners.md +++ b/site/docs/4.1/components/spinners.md @@ -10,14 +10,16 @@ toc: true Bootstrap "spinners" can be used to show the loading state in your projects. They're built only with HTML and CSS, meaning you don't need any JavaScript to create them. You will, however, need some custom JavaScript to toggle their visibility. Their appearance, alignment, and sizing can be easily customized with our amazing utility classes. -For accessibility purposes, each loader here includes `role="status"` and `Loading...` text within. We account for this in our CSS, using a text hiding technique to prevent it from rendering on screen. +For accessibility purposes, each loader here includes `role="status"` and a nested `Loading...`. ## Border spinner Use the border spinners for a lightweight loading indicator. {% capture example %} -
Loading...
+
+ Loading... +
{% endcapture %} {% include example.html content=example %} @@ -27,7 +29,9 @@ The border spinner uses `currentColor` for its `border-color`, meaning you can c {% capture example %} {% for color in site.data.theme-colors %} -
Loading...
{% endfor %} +
+ Loading... +
{% endfor %} {% endcapture %} {% include example.html content=example %} @@ -41,7 +45,9 @@ The border spinner uses `currentColor` for its `border-color`, meaning you can c If you don't fancy a border spinner, switch to the grow spinner. While it doesn't technically spin, it does repeatedly grow! {% capture example %} -
Loading...
+
+ Loading... +
{% endcapture %} {% include example.html content=example %} @@ -49,7 +55,9 @@ Once again, this spinner is built with `currentColor`, so you can easily change {% capture example %} {% for color in site.data.theme-colors %} -
Loading...
{% endfor %} +
+ Loading... +
{% endfor %} {% endcapture %} {% include example.html content=example %} @@ -62,7 +70,9 @@ Spinners in Bootstrap are built with `rem`s, `currentColor`, and `display: inlin Use [margin utilities][margin] like `.m-5` for easy spacing. {% capture example %} -
Loading...
+
+ Loading... +
{% endcapture %} {% include example.html content=example %} @@ -74,7 +84,9 @@ Use [flexbox utilities][flex], [float utilities][float], or [text alignment][tex {% capture example %}
-
Loading...
+
+ Loading... +
{% endcapture %} {% include example.html content=example %} @@ -82,7 +94,7 @@ Use [flexbox utilities][flex], [float utilities][float], or [text alignment][tex {% capture example %}
Loading... -
+
{% endcapture %} {% include example.html content=example %} @@ -91,7 +103,9 @@ Use [flexbox utilities][flex], [float utilities][float], or [text alignment][tex {% capture example %}
-
Loading...
+
+ Loading... +
{% endcapture %} {% include example.html content=example %} @@ -100,7 +114,9 @@ Use [flexbox utilities][flex], [float utilities][float], or [text alignment][tex {% capture example %}
-
Loading...
+
+ Loading... +
{% endcapture %} {% include example.html content=example %} @@ -110,16 +126,24 @@ Use [flexbox utilities][flex], [float utilities][float], or [text alignment][tex Add `.spinner-border-sm` and `.spinner-grow-sm` to make a smaller spinner that can quickly be used within other components. {% capture example %} -
Loading...
-
Loading...
+
+ Loading... +
+
+ Loading... +
{% endcapture %} {% include example.html content=example %} Or, use custom CSS or inline styles to change the dimensions as needed. {% capture example %} -
Loading...
-
Loading...
+
+ Loading... +
+
+ Loading... +
{% endcapture %} {% include example.html content=example %} @@ -129,10 +153,11 @@ Use spinners within buttons to indicate an action is currently processing or tak {% capture example %} {% endcapture %} @@ -140,10 +165,11 @@ Use spinners within buttons to indicate an action is currently processing or tak {% capture example %} {% endcapture %}