Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reintroduce all text color utilities #2030

Merged
merged 56 commits into from
Jul 11, 2023
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
f7bee38
Reintroduce all text color utilities
hannahiss May 9, 2023
461306f
Fix npm run docs
julien-deramond May 10, 2023
14789f3
Merge branch 'main' into main-his-text-colors-ic
hannahiss May 16, 2023
fe787d2
Reintroduce all text color utilities
hannahiss May 16, 2023
3a32113
Merge branch 'main' into main-his-text-colors-ic
hannahiss May 24, 2023
203bf14
Proposal to fix color values for emphasis texts
julien-deramond May 24, 2023
423e644
Merge remote-tracking branch 'origin/main-his-text-colors-ic' into ma…
hannahiss May 24, 2023
a4d4b6e
Reintroduce all text color utilities:
hannahiss May 25, 2023
6497f54
Merge branch 'main' into main-his-text-colors-ic
hannahiss May 30, 2023
b5cc560
Reintroduce all text color utilities, and with LM help:
hannahiss May 31, 2023
9fbc7df
Merge branch 'main' into main-his-text-colors-ic
hannahiss Jun 2, 2023
f4be3c6
Reintroduce all text color utilities:
hannahiss Jun 5, 2023
0a70b2f
increase bundlewatch for utilities
hannahiss Jun 5, 2023
1ece2bf
Reintroduce all text color utilities:
hannahiss Jun 6, 2023
eb857aa
increase bundlewatch for boosted.min.css
hannahiss Jun 6, 2023
86c4967
Merge branch 'main' into main-his-text-colors-ic
hannahiss Jun 8, 2023
f40e65b
precise footer default font color
hannahiss Jun 8, 2023
52114a7
Merge remote-tracking branch 'origin/main-his-text-colors-ic' into ma…
hannahiss Jun 8, 2023
fa729f2
Merge branch 'main' into main-his-text-colors-ic
hannahiss Jun 8, 2023
03cf9cd
Update site/data/theme-colors.yml
hannahiss Jun 9, 2023
a8a4e8f
Merge branch 'main' into main-his-text-colors-ic
julien-deramond Jun 27, 2023
2cd1fa6
Update site/content/docs/5.3/utilities/link.md
hannahiss Jun 27, 2023
f2f9f2d
Update site/content/docs/5.3/helpers/colored-links.md
hannahiss Jun 27, 2023
fa096df
Merge branch 'main' into main-his-text-colors-ic
hannahiss Jun 27, 2023
2268a50
change info icon with settings icon to illustrate use of primary and …
hannahiss Jun 30, 2023
a303aaa
use contrast_color from theme-colors.yml for colored links and harmon…
hannahiss Jun 30, 2023
c45b90f
remove spinners with no text-color utility in Colors and Growing spin…
hannahiss Jun 30, 2023
076768a
change colors and doc after Franco's review
hannahiss Jun 30, 2023
83e6b22
Merge branch 'main' into main-his-text-colors-ic
hannahiss Jun 30, 2023
4f8e635
change on cards and on heading-color
hannahiss Jul 3, 2023
c0cecfb
Merge branch 'main' into main-his-text-colors-ic
julien-deramond Jul 4, 2023
9ca4f20
Update site/content/docs/5.3/components/card.md
hannahiss Jul 4, 2023
e2da0e6
- cards : use directly white and black for headers to ensure right co…
hannahiss Jul 4, 2023
2446484
Merge branch 'main' into main-his-text-colors-ic
julien-deramond Jul 4, 2023
351dd6f
Sprite : remove settings icon already there
hannahiss Jul 4, 2023
0277c2a
Merge remote-tracking branch 'origin/main-his-text-colors-ic' into ma…
hannahiss Jul 4, 2023
7883c7d
Fix bundlewatch
julien-deramond Jul 4, 2023
e1f5939
change doc on spinner since there is only orange version
hannahiss Jul 4, 2023
80242ad
remove mention of color, because just below we have orange and white …
hannahiss Jul 5, 2023
f096165
fix
louismaximepiton Jul 5, 2023
5032b1a
.
louismaximepiton Jul 5, 2023
a5f8fb8
Merge branch 'main' into main-his-text-colors-ic
hannahiss Jul 10, 2023
41f953c
migration guide
hannahiss Jul 10, 2023
3c88060
migration guide adjustments
hannahiss Jul 10, 2023
9baadd2
Merge branch 'main' into main-his-text-colors-ic
julien-deramond Jul 11, 2023
b9f7048
Update scss/_maps.scss
hannahiss Jul 11, 2023
60ef0c7
Update scss/_variables-dark.scss
hannahiss Jul 11, 2023
a59ac95
resolve indentation
hannahiss Jul 11, 2023
f4b7933
fix horizontal rule design callout
hannahiss Jul 11, 2023
760b511
fix horizontal rule design callout
hannahiss Jul 11, 2023
73626db
fix horizontal rule design callout
hannahiss Jul 11, 2023
0e0a824
fix custom color mode font color
hannahiss Jul 11, 2023
db503b9
fix card mixins utilities (remove text success)
hannahiss Jul 11, 2023
214f1d0
fix navbar input-group-text color by adding text-white
hannahiss Jul 11, 2023
8b46e1f
fix hr color on bg-dark
hannahiss Jul 11, 2023
e695e2b
fix comment wording
hannahiss Jul 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scss/_alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@

@each $state, $value in $alert-colors {
.alert-#{$state} {
--#{$prefix}alert-color: var(--#{$prefix}#{$state}-text-emphasis);
--#{$prefix}alert-color: var(--#{$prefix}body-color); // Boosted mod: instead of `var(--#{$prefix}#{$state}-text-emphasis)`
louismaximepiton marked this conversation as resolved.
Show resolved Hide resolved
--#{$prefix}alert-border-color: var(--#{$prefix}#{$state}-border-subtle);
// Boosted mod: no `--#{$prefix}alert-link-color`
--#{$prefix}alert-icon-bg-image: #{map-get($alert-icons, $state)}; // Boosted mod
Expand Down
1 change: 1 addition & 0 deletions scss/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@

&.btn-inverse {
--#{$prefix}btn-color: #{$white};
--#{$prefix}btn-hover-color: #{$white};
--#{$prefix}btn-hover-border-color: #{$gray-700};
--#{$prefix}btn-active-color: #{$brand-orange};
--#{$prefix}btn-active-border-color: #{$gray-700};
Expand Down
16 changes: 9 additions & 7 deletions scss/_maps.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,15 @@ $utilities-colors: $theme-colors-rgb !default;
// scss-docs-end utilities-colors

// scss-docs-start utilities-text-colors
// Boosted mod: content of $utilities-text
$utilities-text: (
"primary": to-rgb($accessible-orange),
"light": to-rgb($gray-500),
"black": to-rgb($black),
"white": to-rgb($white),
"body": to-rgb($body-color),
$utilities-text: map-merge(
$utilities-colors,
(
"primary": to-rgb($accessible-orange),
hannahiss marked this conversation as resolved.
Show resolved Hide resolved
"light": to-rgb($gray-500),
julien-deramond marked this conversation as resolved.
Show resolved Hide resolved
"black": to-rgb($black),
"white": to-rgb($white),
"body": to-rgb($body-color)
)
) !default;
$utilities-text-colors: map-loop($utilities-text, rgba-css-var, "$key", "text") !default;

Expand Down
5 changes: 4 additions & 1 deletion scss/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@

// No focus
&:hover {
color: var(--#{$prefix}navbar-brand-hover-color);
.title,
.two-lined {
color: var(--#{$prefix}navbar-brand-hover-color);
}
text-decoration: if($link-hover-decoration == underline, none, null);
}

Expand Down
4 changes: 4 additions & 0 deletions scss/_root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@
--#{$boosted-prefix}kbd-color: #{$kbd-color-inverted};
--#{$boosted-prefix}kbd-bg: #{$kbd-bg-inverted};
--#{$boosted-prefix}pre-color: #{$pre-color-inverted};
--#{$prefix}body-color: #{$body-color-dark};
--#{$prefix}heading-color: #{$white};
julien-deramond marked this conversation as resolved.
Show resolved Hide resolved

// stylelint-disable-next-line scss/selector-no-redundant-nesting-selector
[class*="bg-"]:not(&):not(.bg-transparent) {
Expand All @@ -175,6 +177,8 @@
--#{$boosted-prefix}kbd-color: #{$kbd-color};
--#{$boosted-prefix}kbd-bg: #{$kbd-bg};
--#{$boosted-prefix}pre-color: #{$pre-color};
--#{$prefix}body-color: #{$body-color};
--#{$prefix}heading-color: #{$black};
}
}
// End mod
Expand Down
4 changes: 2 additions & 2 deletions scss/_tags.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
@include font-size(var(--#{$prefix}tag-font-size));
font-weight: var(--#{$prefix}tag-font-weight);
line-height: add(var(--#{$prefix}tag-font-size), .125rem);
color: inherit;
color: var(--#{$prefix}body-color);
julien-deramond marked this conversation as resolved.
Show resolved Hide resolved
background-color: transparent;
border: var(--#{$prefix}tag-border-width) solid var(--#{$prefix}tag-border-color);
@include border-radius(var(--#{$prefix}tag-border-radius), var(--#{$prefix}tag-border-radius));
Expand Down Expand Up @@ -96,7 +96,7 @@
a.tag,
button.tag,
label.tag {
color: inherit;
color: var(--#{$prefix}body-color);
text-decoration: none;
cursor: pointer;

Expand Down
10 changes: 5 additions & 5 deletions scss/_variables-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
// scss-docs-start theme-text-dark-variables
$primary-text-emphasis-dark: $primary !default; // Boosted mod: isntead of `tint-color($primary, 40%)`
$secondary-text-emphasis-dark: $secondary !default; // Boosted mod: instead of `tint-color($secondary, 40%)`
julien-deramond marked this conversation as resolved.
Show resolved Hide resolved
$success-text-emphasis-dark: null !default; // Boosted mod: instead of `tint-color($success, 40%)`
$info-text-emphasis-dark: null !default; // Boosted mod: instead of `tint-color($info, 40%)`
$warning-text-emphasis-dark: null !default; // Boosted mod: instead of `tint-color($warning, 40%)`
$danger-text-emphasis-dark: null !default; // Boosted mod: instead of `tint-color($danger, 40%)`
$success-text-emphasis-dark: $success !default; // Boosted mod: instead of `tint-color($success, 40%)`
$info-text-emphasis-dark: $info !default; // Boosted mod: instead of `tint-color($info, 40%)`
$warning-text-emphasis-dark: $warning !default; // Boosted mod: instead of `tint-color($warning, 40%)`
$danger-text-emphasis-dark: $danger !default; // Boosted mod: instead of `tint-color($danger, 40%)`
$light-text-emphasis-dark: $light !default; // Boosted mod: instead of `$gray-100`
$dark-text-emphasis-dark: null !default; // Boosted mod: instead of `$gray-300`
$dark-text-emphasis-dark: $dark !default; // Boosted mod: instead of `$gray-300`
// scss-docs-end theme-text-dark-variables

// scss-docs-start theme-bg-subtle-dark-variables
Expand Down
12 changes: 6 additions & 6 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -342,14 +342,14 @@ $theme-colors: (
// scss-docs-end theme-colors-map

// scss-docs-start theme-text-variables
$primary-text-emphasis: $primary !default; // Boosted mod: instead of `shade-color($primary, 60%)`
$primary-text-emphasis: $accessible-orange !default; // Boosted mod: instead of `shade-color($primary, 60%)`
$secondary-text-emphasis: $secondary !default; // Boosted mod: instead of `shade-color($secondary, 60%)`
$success-text-emphasis: null !default; // Boosted mod: instead of `shade-color($success, 60%)`
$info-text-emphasis: null !default; // Boosted mod: instead of `shade-color($info, 60%)`
$warning-text-emphasis: null !default; // Boosted mod: instead of `shade-color($warning, 60%)`
$danger-text-emphasis: null !default; // Boosted mod: instead of `shade-color($danger, 60%)`
$success-text-emphasis: $success !default; // Boosted mod: instead of `shade-color($success, 60%)`
$info-text-emphasis: $info !default; // Boosted mod: instead of `shade-color($info, 60%)`
$warning-text-emphasis: $warning !default; // Boosted mod: instead of `shade-color($warning, 60%)`
$danger-text-emphasis: $danger !default; // Boosted mod: instead of `shade-color($danger, 60%)`
$light-text-emphasis: $light !default; // Boosted mod: instead of `$gray-700`
$dark-text-emphasis: null !default; // Boosted mod: instead of `$gray-700`
$dark-text-emphasis: $dark !default; // Boosted mod: instead of `$gray-700`
// scss-docs-end theme-text-variables

// scss-docs-start theme-bg-subtle-variables
Expand Down
50 changes: 0 additions & 50 deletions scss/mixins/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,56 +83,6 @@
}
}
#{$property}: $value if($enable-important-utilities, !important, null);

// Boosted mod: ensure contrasts in color utilities
@if "background-color" == $property {
@if type-of($value) == "string" {
$color-name: get-color-from-rgba-string($value);
@if undefined != $color-name {
@if map-has-key($theme-colors, $color-name) {
$value: map-get($theme-colors, $color-name);
}
// Handle colors not in $theme-colors
@else if $color-name == "black" {
$value: $black;
}
}
}

@if "transparent" != inspect($value) and type-of($value) != "string" {
color: color-contrast($value);
}
@else if $value == "var(--bs-secondary-bg-subtle)" or $value == "var(--bs-dark-bg-subtle)" {
color: var(--bs-white);
}
}
@else if "color" == $property {
@if type-of($value) == "string" {
$color-name: get-color-from-rgba-string($value);
@if undefined != $color-name {
@if map-has-key($theme-colors, $color-name) {
$value: map-get($theme-colors, $color-name);
}
// Handle colors not in $theme-colors
@else if $color-name == "white" {
$value: $white;
} @else if $color-name == "body-color" {
$value: $black;
} @else if $color-name == "black" {
background: var(--bs-white);
}
}
}

@if $value == $white or $value == $light {
background: color-contrast($value);
} @else if $value == "var(--bs-light-text-emphasis)" {
background: var(--bs-black);
} @else if $value == $body-color {
background: var(--bs-body-bg);
}
}
// End mod
}
}

Expand Down
8 changes: 4 additions & 4 deletions site/content/docs/5.3/components/spinners.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The border spinner uses `currentColor` for its `border-color`, meaning you can c
<div class="spinner-border text-primary" role="status">
<span class="visually-hidden">Loading...</span>
</div>
<div class="spinner-border text-secondary" role="status">
julien-deramond marked this conversation as resolved.
Show resolved Hide resolved
<div class="spinner-border" role="status">
<span class="visually-hidden">Loading...</span>
</div>
{{< /example >}}
Expand All @@ -52,7 +52,7 @@ The border spinner uses `currentColor` for its `border-color`, meaning you can c
<div class="spinner-border text-primary" role="status">
<span class="visually-hidden">Loading...</span>
</div>
<div class="spinner-border text-secondary" role="status">
<div class="spinner-border text-white" role="status">
<span class="visually-hidden">Loading...</span>
</div>
{{< /example >}}
Expand Down Expand Up @@ -81,7 +81,7 @@ Once again, this spinner is built with `currentColor`, so you can easily change
<div class="spinner-grow text-primary" role="status">
<span class="visually-hidden">Loading...</span>
</div>
<div class="spinner-grow text-secondary" role="status">
<div class="spinner-grow" role="status">
<span class="visually-hidden">Loading...</span>
</div>
{{< /example >}}
Expand All @@ -90,7 +90,7 @@ Once again, this spinner is built with `currentColor`, so you can easily change
<div class="spinner-grow text-primary" role="status">
<span class="visually-hidden">Loading...</span>
</div>
<div class="spinner-grow text-secondary" role="status">
<div class="spinner-grow text-white" role="status">
<span class="visually-hidden">Loading...</span>
</div>
{{< /example >}}
Expand Down
6 changes: 3 additions & 3 deletions site/content/docs/5.3/utilities/background.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ Background utilities like `.bg-*` that generated from our original `$theme-color
<!-- Boosted mod: inconsistent background color & naming, showing only supporting color naming -->
{{< example >}}
<div class="p-3 mb-2 fw-bold bg-primary">.bg-primary</div>
<div class="p-3 mb-2 fw-bold bg-secondary">.bg-secondary</div>
<div class="p-3 mb-2 fw-bold bg-secondary text-white">.bg-secondary</div>
<div class="p-3 mb-2 fw-bold bg-supporting-green">.bg-supporting-green</div>
<div class="p-3 mb-2 fw-bold bg-supporting-purple">.bg-supporting-purple</div>
<div class="p-3 mb-2 fw-bold bg-supporting-yellow">.bg-supporting-yellow</div>
<div class="p-3 mb-2 fw-bold bg-supporting-blue">.bg-supporting-blue</div>
<div class="p-3 mb-2 fw-bold bg-supporting-pink">.bg-supporting-pink</div>
<div class="p-3 mb-2 fw-bold bg-light">.bg-light</div>
<div class="p-3 mb-2 fw-bold bg-dark">.bg-dark</div>
<div class="p-3 mb-2 fw-bold bg-dark text-white">.bg-dark</div>
<div class="p-3 mb-2 fw-bold bg-body-secondary">.bg-body-secondary</div>
<div class="p-3 mb-2 fw-bold bg-body-tertiary">.bg-body-tertiary</div>
<div class="p-3 mb-2 fw-bold bg-body">.bg-body</div>
<div class="p-3 mb-2 fw-bold bg-black">.bg-black</div>
<div class="p-3 mb-2 fw-bold bg-black text-white">.bg-black</div>
<div class="p-3 mb-2 fw-bold bg-white">.bg-white</div>
<div class="p-3 mb-2 fw-bold bg-transparent">.bg-transparent</div>
{{< /example >}}
Expand Down
87 changes: 67 additions & 20 deletions site/content/docs/5.3/utilities/colors.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,42 @@ aliases:
toc: true
---

## Accessibility

{{< callout info >}}
{{< partial "callouts/warning-color-assistive-technologies.md" >}}
{{< /callout >}}

When using `.text-*` and `.bg-*` utilities, **contrasts are locked to ensure they meet [WCAG 2.0 accessibility standards for color contrast](https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html)**, by defining `color` and `background-color` altogether. Please refer to [our theme colors]({{< docsref "/customize/color" >}}#all-colors) to have a full preview of Boosted color palette’s reached WCAG level.

## Colors

{{< design-callout-alert >}}
Some of the colors combinations below do not belong the Orange Design System specifications, and do not meet accessibility standards.

Please refer to our [Orange's colors]({{< docsref "/utilities/colors#oranges-colors" >}}) section underneath and to the [Color](https://system.design.orange.com/0c1af118d/p/7059a5-colour/b/17b829) guidelines on the Orange Design System website.
{{< /design-callout-alert >}}

Colorize text with color utilities. If you want to colorize links, you can use the [`.link-*` helper classes]({{< docsref "/helpers/colored-links" >}}) which have `:hover` and `:focus` states.

{{< callout info >}}
Color utilities like `.text-*` that generated from our original `$theme-colors` Sass map don't yet respond to color modes, however, any `.text-*-emphasis` utility will. This will be resolved in v6.
{{< /callout >}}

<!-- Boosted mod -->
{{< example >}}
<p class="text-primary">.text-primary</p>
<p class="text-secondary">.text-secondary</p>
<p class="text-light">.text-light</p>
{{< colors.inline >}}
{{- range (index $.Site.Data "theme-colors") }}
louismaximepiton marked this conversation as resolved.
Show resolved Hide resolved
<p class="text-{{ .name }}{{ with .contrast_color }} bg-{{ . }}{{ end }}">.text-{{ .name }}</p>
<p class="text-{{ .name }}-emphasis">.text-{{ .name }}-emphasis</p>
louismaximepiton marked this conversation as resolved.
Show resolved Hide resolved
{{- end -}}
{{< /colors.inline >}}

<p class="text-body">.text-body</p>
<p class="text-body-emphasis">.text-body-emphasis</p>
<p class="text-body-secondary">.text-body-secondary</p>
<p class="text-body-tertiary">.text-body-tertiary</p>
<p class="text-black">.text-black</p>
<p class="text-white">.text-white</p>

<p class="text-black bg-white">.text-black</p>
<p class="text-white bg-dark">.text-white</p>
<p class="text-black-50 bg-white">.text-black-50</p>
<p class="text-white-50 bg-dark">.text-white-50</p>
{{< /example >}}
<!-- End mod -->

{{< callout warning >}}
**Deprecation:** With the addition of `.text-opacity-*` utilities and CSS variables for text utilities, `.text-black-50` and `.text-white-50` are deprecated as of v5.1.0. They'll be removed in v6.0.0.
Expand All @@ -46,16 +53,56 @@ Color utilities like `.text-*` that generated from our original `$theme-colors`
**Deprecation:** With the addition of the expanded theme colors and variables, the `.text-muted` utility has been deprecated as of v5.3.0. Its default value has also been reassigned to the new `--bs-secondary-color` CSS variable to better support color modes. It will be removed in v6.0.0.
{{< /callout >}}

{{< callout info >}}
For each `.text-*` there is a matching `.text-*-emphasis` utility. In Boosted, they have exactly the same value so we decided not to display them in the example above so that you don't hesitate on which class to use.
<!-- Boosted mod -->
## Orange's colors

Here is a list of these extra classes:
{{< colors.inline >}}
{{- range (index $.Site.Data "theme-colors") }}
- `.text-{{ .name }}-emphasis`
{{- end -}}
{{< /colors.inline >}}
{{< /callout >}}
Bootstrap provides many `.text-*` and `.bg-*` utilities, but they should be used with care to meet our design specifications and [WCAG 2.0 accessibility standards for color contrast](https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html).
To be sure to respect the specifications, it is necessary to define `color`, `background-color` and `font-size` altogether.

Thus, the `.text-primary` color on light background can only be used in a font size greater than 24px (using for example `.fs-3` utility), or 19px bold (using for example `.fs-4` and `.fw-bold` utilities).
louismaximepiton marked this conversation as resolved.
Show resolved Hide resolved

Here are some compliant combinations examples for texts:

{{< example >}}
<p class="text-primary fs-3">.text-primary</p>
<p class="text-primary fs-4 fw-bold">.text-primary</p>
<p class="text-primary bg-dark">.text-primary</p>
<p class="text-secondary">.text-secondary</p>
<p class="text-light bg-dark">.text-light</p>
<p class="text-body">.text-body</p>
<p class="text-body-secondary">.text-body-secondary</p>
<p class="text-black">.text-black</p>
<p class="text-white">.text-white</p>
louismaximepiton marked this conversation as resolved.
Show resolved Hide resolved
{{< /example >}}

Here are some compliant combinations examples for non-texts elements, such as SVG icons:
louismaximepiton marked this conversation as resolved.
Show resolved Hide resolved

{{< example >}}
<p class="p-2">
<svg width="1.875em" height="1.875em" class="text-primary" aria-hidden="true" focusable="false">
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#success"/>
</svg>
<svg width="1.875em" height="1.875em" class="text-success" aria-hidden="true" focusable="false">
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#success"/>
</svg>
<svg width="1.875em" height="1.875em" class="text-danger" aria-hidden="true" focusable="false">
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#danger"/>
</svg>
<svg width="1.875em" height="1.875em" class="text-info" aria-hidden="true" focusable="false">
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#info"/>
</svg>
</p>
<p class="bg-dark p-2">
<svg width="1.875em" height="1.875em" class="text-primary" aria-hidden="true" focusable="false">
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#success"/>
</svg>
<svg width="1.875em" height="1.875em" class="text-warning" aria-hidden="true" focusable="false">
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/boosted-sprite.svg#warning"/>
</svg>
louismaximepiton marked this conversation as resolved.
Show resolved Hide resolved
</p>
{{< /example >}}

<!-- End mod -->

## Opacity

Expand Down