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

Dark mode #2223

Merged
merged 71 commits into from
Jan 2, 2024
Merged
Changes from 1 commit
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
34273ef
feat: dark mode
julien-deramond Sep 11, 2023
a6c063d
Dark mode: Navs Tabs (#2307)
hannahiss Oct 25, 2023
877fa75
Dark mode: modal (#2322)
louismaximepiton Oct 25, 2023
ca92d34
Dark mode: Switches (#2285)
louismaximepiton Oct 25, 2023
ee08290
Dark mode: Form select (#2286)
louismaximepiton Oct 25, 2023
942a3cd
Dark mode: Quantity selector (#2287)
louismaximepiton Oct 25, 2023
c6e3027
Dark mode: tarteaucitron (#2339)
louismaximepiton Oct 25, 2023
142b9e5
Dark mode: Close button (#2317)
louismaximepiton Oct 26, 2023
63c7c05
Dark mode: Form Validation (#2302)
louismaximepiton Oct 27, 2023
446511b
Dark mode: Back to top (#2329)
louismaximepiton Oct 27, 2023
3f03490
Dark mode: Popovers (#2325)
louismaximepiton Oct 27, 2023
79e5ef9
Dark mode: pagination (#2314)
louismaximepiton Oct 27, 2023
55b3357
Dark mode: Carousel (#2316)
louismaximepiton Oct 27, 2023
98b005e
Dark mode: Cards (#2318)
louismaximepiton Oct 27, 2023
58764c9
Dark mode: Algolia search modal (#2338)
louismaximepiton Oct 30, 2023
ba01403
Fix bundlewatch values
julien-deramond Oct 30, 2023
9aee957
Dark mode: Offcanvas (#2348)
louismaximepiton Oct 31, 2023
ee02130
Dark mode: Progress bars (#2326)
louismaximepiton Oct 31, 2023
55ce206
Move Progress to the right place
julien-deramond Oct 31, 2023
d4a9de3
Dark mode: Tooltips (#2352)
louismaximepiton Nov 3, 2023
a7dfe63
Dark mode: List group (#2321)
louismaximepiton Nov 3, 2023
71bb1eb
Fix QS after merge main
julien-deramond Nov 3, 2023
0de3e28
Fix bundlewatch values
julien-deramond Nov 3, 2023
ebb9b94
Dark mode: Navbar & Orange navbar (#2345)
louismaximepiton Nov 6, 2023
9da3743
Dark mode: Tables (#2349)
louismaximepiton Nov 6, 2023
a6b94d7
Dark mode: basic elements (#2355)
louismaximepiton Nov 7, 2023
54e034b
Dark mode: Footer (#2356)
louismaximepiton Nov 7, 2023
d0a8676
Dark mode: Title bars (#2350)
louismaximepiton Nov 8, 2023
b1e6e11
Dark mode: Dropdown variant (#2323)
louismaximepiton Nov 13, 2023
365975f
Dark mode: Utilities (bg, border, color) (#2362)
louismaximepiton Nov 13, 2023
4cfde88
Dark mode: Masonry example (#2369)
louismaximepiton Nov 13, 2023
db178f5
Dark mode: Grid example (#2368)
louismaximepiton Nov 13, 2023
c78e99e
Dark mode: change colors of doc callouts to be more emphasized (#2375)
louismaximepiton Nov 15, 2023
0f5f47a
Drop extra space in utilities colors doc
julien-deramond Nov 15, 2023
e6cf3f1
Tweak a bit the color mode switcher (#2381)
louismaximepiton Nov 15, 2023
884fb6f
Dark mode: Remove useless CSS since dropdown have been changed (#2377)
louismaximepiton Nov 15, 2023
ef3c320
Dark mode: Handle dark mode code highlights (#2378)
louismaximepiton Nov 15, 2023
d98388b
Dark mode: Download app example (#2367)
louismaximepiton Nov 16, 2023
9936e4d
Dark mode: handle orange in the doc (#2371)
louismaximepiton Nov 16, 2023
1b38248
Dark mode: Change functionnal colors in dark mode (#2370)
louismaximepiton Nov 16, 2023
11f23a1
Dark mode: fix toggle-buttons (#2365)
louismaximepiton Nov 20, 2023
a810e8f
Fix thumbnail hover design guidelines orange color
julien-deramond Nov 27, 2023
2b579ce
Dark mode: add badge in /dark-mode page (#2387)
julien-deramond Nov 28, 2023
c63d35a
Dark Mode: add placeholders to /dark-mode page (#2391)
louismaximepiton Nov 29, 2023
7101481
Dark mode: move placeholders in /dark-mode
julien-deramond Nov 29, 2023
06fba00
Dark mode: Auto color and bg-color with data-bs-theme (#2313)
julien-deramond Nov 29, 2023
36e391e
Fix bundlewatch values
julien-deramond Dec 13, 2023
0df0b4c
Dark mode: Color handling in the colors (#2382)
louismaximepiton Dec 13, 2023
925e7f8
Drop variables from dark-mode page
julien-deramond Dec 13, 2023
d6a98fb
Dark mode: fix black card in masonry example (#2408)
julien-deramond Dec 13, 2023
4983159
Dark mode: Spinner in buttons (#2410)
louismaximepiton Dec 13, 2023
43b5891
Dark mode: enhance Color Modes v5.3.0 explanation in migration guide …
julien-deramond Dec 14, 2023
85aebae
Dark mode: pagination hover color (#2405)
louismaximepiton Dec 14, 2023
8ebfc2c
Dark mode: Add some Sass variables to handle newly added CSS vars (#2…
louismaximepiton Dec 14, 2023
0946bfd
Dark mode: Fix `<select>` focus (#2404)
louismaximepiton Dec 15, 2023
24aa0e7
Dark mode: Handle properly dark variants (#2419)
louismaximepiton Dec 18, 2023
024bd98
Dark mode: Deprecate variables and CSS classes (#2424)
louismaximepiton Dec 18, 2023
264129e
Dark mode: Fix dropdown design (#2417)
louismaximepiton Dec 19, 2023
cca55d3
Dark mode: Local nav and nav underline fix (#2406)
louismaximepiton Dec 19, 2023
8f11402
Dark mode: Table fix (#2418)
louismaximepiton Dec 19, 2023
72648f0
Dark mode: Toasts (#2380)
louismaximepiton Dec 19, 2023
7a9903a
Dark mode: Navbar Color Schemes (#2412)
julien-deramond Dec 19, 2023
1cb8fe8
Dark mode: revert some changes linked to `main` temporary `.text-*` u…
julien-deramond Dec 20, 2023
8aee7c1
Dark mode: fix list group documentation (#2435)
julien-deramond Dec 21, 2023
3ef9030
Dark mode: Docs about background utility (#2411)
louismaximepiton Dec 21, 2023
5092296
Dark mode: Theme switcher control (#2425)
louismaximepiton Dec 27, 2023
3e296d0
Dark mode: drop bottom-right theme selector for Download page and For…
julien-deramond Dec 27, 2023
aca124d
Dark mode: add new navbar mode selector example (#2436)
julien-deramond Dec 27, 2023
8238943
Dark mode: rework Color Modes pages (#2442)
julien-deramond Dec 27, 2023
8d31874
Dark mode: add a warning callout to Orange's colors section (#2444)
julien-deramond Dec 27, 2023
6f8e992
Dark mode: migration guide (#2433)
julien-deramond Jan 2, 2024
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
Prev Previous commit
Dark mode: migration guide (#2433)
Co-authored-by: louismaxime.piton <louismaxime.piton@orange.com>
julien-deramond and louismaximepiton authored Jan 2, 2024

Verified

This commit was created on github.com and signed with GitHub’s verified signature. The key has expired.
commit 6f8e9926f00012ea7415746459433b0d8125cc2f
8 changes: 4 additions & 4 deletions .bundlewatch.config.json
Original file line number Diff line number Diff line change
@@ -10,15 +10,15 @@
},
{
"path": "./dist/css/boosted-reboot.css",
"maxSize": "4.75 kB"
"maxSize": "4.5 kB"
},
{
"path": "./dist/css/boosted-reboot.min.css",
"maxSize": "4.5 kB"
},
{
"path": "./dist/css/boosted-utilities.css",
"maxSize": "13.0 kB"
"maxSize": "12.75 kB"
},
{
"path": "./dist/css/boosted-utilities.min.css",
@@ -42,11 +42,11 @@
},
{
"path": "./dist/js/boosted.esm.js",
"maxSize": "33.25 kB"
"maxSize": "33.0 kB"
},
{
"path": "./dist/js/boosted.esm.min.js",
"maxSize": "20.5 kB"
"maxSize": "20.25 kB"
},
{
"path": "./dist/js/boosted.js",
1 change: 1 addition & 0 deletions scss/_close.scss
Original file line number Diff line number Diff line change
@@ -60,6 +60,7 @@
}
}

// Deprecated in v5.3.3
// Boosted mod: changing color instead of using filter
.btn-close-white {
--#{$prefix}btn-close-color: #{$btn-close-white-color}; // Boosted mod
4 changes: 2 additions & 2 deletions scss/_footer.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.footer {
// scss-docs-start footer-part-css-vars
// scss-docs-start footer-css-vars
--#{$prefix}footer-gap: 0;
--#{$prefix}footer-padding-top: 0;
--#{$prefix}footer-padding-bottom: 0;
@@ -9,7 +9,7 @@
--#{$prefix}footer-title-font-weight: #{$footer-title-font-weight};
--#{$prefix}footer-title-line-height: #{$footer-line-height-md};
--#{$prefix}footer-title-letter-spacing: #{$footer-letter-spacing};
// scss-docs-end footer-part-css-vars
// scss-docs-end footer-css-vars
--#{$prefix}navbar-padding-y: 0;
--#{$prefix}navbar-nav-link-padding-y: 0;
--#{$prefix}navbar-nav-link-padding-x: 0;
2 changes: 0 additions & 2 deletions scss/_pagination.scss
Original file line number Diff line number Diff line change
@@ -205,5 +205,3 @@
//

// Boosted mod: no pagination sizes

// End mod
2 changes: 1 addition & 1 deletion scss/forms/_form-check.scss
Original file line number Diff line number Diff line change
@@ -137,7 +137,7 @@
&:required {
~ .form-check-label::after {
margin-left: $form-label-required-margin-left;
color: $primary;
color: $form-label-required-color;
content: "*";
}
}
6 changes: 3 additions & 3 deletions site/content/docs/5.3/about/brand.md
Original file line number Diff line number Diff line change
@@ -19,15 +19,15 @@ Have a need for Boosted's brand resources? Great! We have only a few guidelines
<div class="row row-cols-md-2 mt-4 mb-5">
<div class="col">
<div class="ratio ratio-1x1">
<figure class="d-flex bg-dark">
<figure class="d-flex bg-black">
<img src="/docs/{{< param docs_version >}}/assets/brand/orange-logo.svg" class="figure-img img-fluid m-auto" width="220" height="220" role="img" alt="Orange" loading="lazy">
<figcaption class="figure-caption fw-bold position-absolute">Master logo</figcaption>
</figure>
</div>
</div>
<div class="col">
<div class="ratio ratio-1x1">
<figure class="d-flex bg-dark">
<figure class="d-flex bg-black">
<img src="/docs/{{< param docs_version >}}/assets/brand/orange-logo.svg" class="figure-img m-auto" width="30" height="30" role="img" alt="Orange" loading="lazy">
<figcaption class="figure-caption fw-bold position-absolute">Small logo</figcaption>
</figure>
@@ -48,7 +48,7 @@ Orange Business Services has its own logo that contains the Orange logo and the
<div class="row row-cols-md-2 mt-4 mb-5">
<div class="col">
<div class="ratio ratio-1x1">
<figure class="d-flex bg-dark">
<figure class="d-flex bg-black">
<img src="/docs/{{< param docs_version >}}/assets/brand/OBS-logo.svg" class="figure-img img-fluid m-auto" width="220" height="220" role="img" alt="Orange" loading="lazy">
<figcaption class="figure-caption fw-bold position-absolute">Orange Business Services logo</figcaption>
</figure>
2 changes: 1 addition & 1 deletion site/content/docs/5.3/components/back-to-top.md
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ Smooth scrolling does not depend on this component. It's turned on only when the

## Example

<div class="bd-example">
<div class="bd-example d-flex">
<nav aria-label="Standard back to top example" class="back-to-top position-static ps-5 ms-5">
<a href="#top" class="back-to-top-link btn btn-icon btn-outline-secondary position-relative top-0" data-bs-label="Back to top">
<span class="visually-hidden">Back to top</span>
4 changes: 2 additions & 2 deletions site/content/docs/5.3/components/card.md
Original file line number Diff line number Diff line change
@@ -302,7 +302,7 @@ Add some navigation to a card's header (or block) with Boosted's [nav components

{{< example >}}
<div class="card text-center">
<div class="card-header bg-body">
<div class="card-header text-body bg-body">
<ul class="nav nav-tabs card-header-tabs">
<li class="nav-item">
<a class="nav-link active" aria-current="true" href="#">Active</a>
@@ -325,7 +325,7 @@ Add some navigation to a card's header (or block) with Boosted's [nav components

{{< example >}}
<div class="card text-center">
<div class="card-header bg-body">
<div class="card-header text-body bg-body">
<ul class="nav nav-pills card-header-pills">
<li class="nav-item">
<a class="nav-link active" href="#">Active</a>
2 changes: 0 additions & 2 deletions site/content/docs/5.3/components/dropdowns.md
Original file line number Diff line number Diff line change
@@ -395,8 +395,6 @@ Please refer to the [Dropdown](https://system.design.orange.com/0c1af118d/p/910b

{{< deprecated-in "5.3.3" >}}

Opt into darker dropdowns to match a dark navbar or custom style by adding `.dropdown-menu-dark` onto an existing `.dropdown-menu`. No changes are required to the dropdown items.

{{< callout-deprecated-dark-variants "dropdown-menu" >}}

## Directions
6 changes: 3 additions & 3 deletions site/content/docs/5.3/components/footer.md
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ added: "5.2"

## How it works

Our footer is basically a `<footer>` tag with a `.bg-dark` class. It comes with 5 ready-to-use fully responsive bars which should be arranged vertically in the following order:
Our footer is basically a `<footer>` tag with `.footer` and `.navbar` classes. It comes with 5 ready-to-use fully responsive bars which should be arranged vertically in the following order:
- Title with content bar
- Follow us bar
- Navigation bar
@@ -39,7 +39,7 @@ This footer component is based on the [navbar component]({{< docsref "/component
The `<h2></h2>` and `<h3></h3>` tags used in the following sections are informative, you **need** to adapt those to your website's title hierarchy.
{{< /callout >}}

The footer bars are independent from each other. Just add a dark separator between each bar of the final footer.
The footer bars are independent from each other. Just add a separator between each bar of the final footer.

```html
<div class="border-bottom border-1 border-dark"></div>
@@ -137,7 +137,7 @@ Please note that you should also add the `aria-current` attribute on the active

As part of Boosted’s evolving CSS variables approach, footers use local CSS variables on every footer part for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.

{{< scss-docs name="footer-part-css-vars" file="scss/_footer.scss" >}}
{{< scss-docs name="footer-css-vars" file="scss/_footer.scss" >}}

Each bar redefines its own CSS variables.

18 changes: 1 addition & 17 deletions site/content/docs/5.3/components/offcanvas.md
Original file line number Diff line number Diff line change
@@ -148,23 +148,7 @@ When backdrop is set to static, the offcanvas will not close when clicking outsi

{{< deprecated-in "5.3.3" >}}

Change the appearance of offcanvases with utilities to better match them to different contexts like dark navbars. Here we add `.text-bg-dark` to the `.offcanvas` for proper styling with a dark offcanvas.

{{< callout warning >}}
**Heads up!** Dark variants for components were deprecated in v5.3.3 with the introduction of color modes. Instead of manually adding classes mentioned above, set `data-bs-theme="dark"` on the root element, a parent wrapper, or the component itself.
{{< /callout >}}

{{< example class="bd-example-offcanvas p-0 bg-body-tertiary overflow-hidden" stackblitz_add_js="true" >}}
<div class="offcanvas offcanvas-start show text-bg-dark" tabindex="-1" id="offcanvasDark" aria-labelledby="offcanvasDarkLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="offcanvasDarkLabel">Offcanvas</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvasDark" aria-label="Close" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="Close"></button>
</div>
<div class="offcanvas-body">
<p>Place offcanvas content here.</p>
</div>
</div>
{{< /example >}}
{{< callout-deprecated-dark-variants "offcanvas" >}}

## Responsive

2 changes: 1 addition & 1 deletion site/content/docs/5.3/components/orange-navbar.md
Original file line number Diff line number Diff line change
@@ -450,7 +450,7 @@ To easily integrate it in your project, you can start from our [Navbar mode sele
</button>
</li>
<li>
<button type="button" class="dropdown-item d-flex align-items-center active" data-bs-theme-value="body" aria-pressed="true">
<button type="button" class="dropdown-item d-flex align-items-center active" data-bs-theme-value="auto" aria-pressed="true">
<svg class="me-2"><use href="#ui-auto-mode"></use></svg>
Auto
<svg class="ms-auto d-none"><use href="#check2"></use></svg>
2 changes: 1 addition & 1 deletion site/content/docs/5.3/components/progress.md
Original file line number Diff line number Diff line change
@@ -79,7 +79,7 @@ Add labels to your progress bars by placing text within the `.progress-bar`.

{{< example >}}
<div class="progress" role="progressbar" aria-label="Example with label" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">
<div class="progress-bar" style="width: 25%">25%</div>
<div class="progress-bar text-dark" style="width: 25%">25%</div>
</div>
{{< /example >}}

14 changes: 3 additions & 11 deletions site/content/docs/5.3/components/title-bars.md
Original file line number Diff line number Diff line change
@@ -19,13 +19,13 @@ See them in action in our [examples page]({{<docsref "/examples/title-bars">}}).

## Background color

To change the appearance of a title bar, use our [background utilities]({{<docsref "/utilities/background">}}). Orange branded background utilities are `.bg-dark`, `.bg-white` and `.bg-supporting-*`.
To change the appearance of a title bar, use our [background utilities]({{<docsref "/utilities/background">}}) such as `.bg-supporting-*`.

Title bars can be displayed with `.bg-black`, `.bg-dark`, `.bg-white` or with the default background color. When using `.bg-black`, `.bg-dark`, `.bg-white` or the default background color, illustrations can be included as an option, but it's not necessary.
When using title bars with the default background color, illustrations can be included as an option, but it's not mandatory.

Supporting colors can also be used as the background color for title bars, but not the supporting light and dark tint colors. When using one of the supporting colors, illustrations must be used.

The image should not overlap on title and the title shouldn't wrap. If this happens, please transform your title bar into a title bar with `.bg-black`, `.bg-dark`, `.bg-white` or with the default background color without any image.
The image should not overlap on title and the title shouldn't wrap. If this happens, please transform your title bar into a title bar with the default background color without any image.

{{< example class="p-0">}}
<div class="title-bar">
@@ -36,14 +36,6 @@ The image should not overlap on title and the title shouldn't wrap. If this happ

<div class="mt-3"></div>

<div class="bg-dark title-bar" data-bs-theme="dark">
<div class="container-xxl">
<h1 class="display-1">Title</h1>
</div>
</div>

<div class="mt-3"></div>

<div class="bg-supporting-green title-bar" data-bs-theme="light">
<div class="container-xxl">
<h1 class="display-1">Title</h1>
36 changes: 18 additions & 18 deletions site/content/docs/5.3/customize/color-theme.md
Original file line number Diff line number Diff line change
@@ -251,17 +251,17 @@ Some more contextual CSS variables are provided to create high-level semantic va
<td>
{{< markdown >}}Foreground.{{< /markdown >}}
</td>
<td>
<td class="border-top-1">
<div class="border-color">
<div class="w-100 h-100" style="background-color: var(--bs-body-color);" data-bs-theme="light" title="#000"><p class="visually-hidden">#000</p></div>
</div>
</td>
<td>
<td class="border-top-1">
<div class="border-color">
<div class="w-100 h-100" style="background-color: var(--bs-body-color);" data-bs-theme="dark" title="#fff"><p class="visually-hidden">#fff</p></div>
</div>
</td>
<td>
<td class="border-top-1">
<div>
<button class="color-copy" data-clipboard-text="--bs-body-color" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard" data-bs-placement="left"><code>--bs-body-color</code></button>
<button class="color-copy" data-clipboard-text="--bs-body-color-rgb" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard" data-bs-placement="left"><code>--bs-body-color-rgb</code></button>
@@ -296,17 +296,17 @@ Some more contextual CSS variables are provided to create high-level semantic va
<td>
{{< markdown >}}Foreground.{{< /markdown >}}
</td>
<td>
<td class="border-top-1">
<div class="border-color">
<div class="w-100 h-100" style="background-color: var(--bs-secondary-color);" data-bs-theme="light" title="#666"><p class="visually-hidden">#666</p></div>
</div>
</td>
<td>
<td class="border-top-1">
<div class="border-color">
<div class="w-100 h-100" style="background-color: var(--bs-secondary-color);" data-bs-theme="dark" title="#999"><p class="visually-hidden">#999</p></div>
</div>
</td>
<td>
<td class="border-top-1">
<div>
<button class="color-copy" data-clipboard-text="--bs-secondary-color" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard" data-bs-placement="left"><code>--bs-secondary-color</code></button>
<button class="color-copy" data-clipboard-text="--bs-secondary-color-rgb" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard" data-bs-placement="left"><code>--bs-secondary-color-rgb</code></button>
@@ -341,17 +341,17 @@ Some more contextual CSS variables are provided to create high-level semantic va
<td>
{{< markdown >}}Foreground.{{< /markdown >}}
</td>
<td>
<td class="border-top-1">
<div class="border-color">
<div class="w-100 h-100" style="background-color: var(--bs-tertiary-color);" data-bs-theme="light" title="#ccc"><p class="visually-hidden">#ccc</p></div>
</div>
</td>
<td>
<td class="border-top-1">
<div class="border-color">
<div class="w-100 h-100" style="background-color: var(--bs-tertiary-color);" data-bs-theme="dark" title="#999"><p class="visually-hidden">#999</p></div>
</div>
</td>
<td>
<td class="border-top-1">
<div>
<button class="color-copy" data-clipboard-text="--bs-tertiary-color" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard" data-bs-placement="left"><code>--bs-tertiary-color</code></button>
<button class="color-copy" data-clipboard-text="--bs-tertiary-color-rgb" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard" data-bs-placement="left"><code>--bs-tertiary-color-rgb</code></button>
@@ -406,17 +406,17 @@ Some more contextual CSS variables are provided to create high-level semantic va
<td>
{{< markdown >}}Subtle.{{< /markdown >}}
</td>
<td>
<td class="border-top-1">
<div class="border-color">
<div class="w-100 h-100" style="background-color: var(--bs-border-color-subtle);" data-bs-theme="light" title="#ccc"><p class="visually-hidden">#ccc</p></div>
</div>
</td>
<td>
<td class="border-top-1">
<div class="border-color">
<div class="w-100 h-100" style="background-color: var(--bs-border-color-subtle);" data-bs-theme="dark" title="#666"><p class="visually-hidden">#666</p></div>
</div>
</td>
<td>
<td class="border-top-1">
<div>
<button class="color-copy" data-clipboard-text="--bs-border-color-subtle" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard" data-bs-placement="left"><code>--bs-border-color-subtle</code></button>
</div>
@@ -469,17 +469,17 @@ Some more contextual CSS variables are provided to create high-level semantic va
<td>
{{< markdown >}}Foreground.{{< /markdown >}}
</td>
<td>
<td class="border-top-1">
<div class="border-color">
<div class="w-100 h-100" style="background-color: var(--bs-highlight-color);" data-bs-theme="light" title="#fff"><p class="visually-hidden">#fff</p></div>
</div>
</td>
<td>
<td class="border-top-1">
<div class="border-color">
<div class="w-100 h-100" style="background-color: var(--bs-highlight-color);" data-bs-theme="dark" title="#000"><p class="visually-hidden">#000</p></div>
</div>
</td>
<td>
<td class="border-top-1">
<div>
<button class="color-copy" data-clipboard-text="--bs-highlight-color" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard" data-bs-placement="left"><code>--bs-highlight-color</code></button>
</div>
@@ -535,17 +535,17 @@ Some more contextual CSS variables are provided to create high-level semantic va
<td>
{{< markdown >}}Inner.{{< /markdown >}}
</td>
<td>
<td class="border-top-1">
<div class="border-color">
<div class="w-100 h-100" style="background-color: var(--bs-focus-visible-inner-color);" data-bs-theme="light" title="#fff"><p class="visually-hidden">#fff</p></div>
</div>
</td>
<td>
<td class="border-top-1">
<div class="border-color">
<div class="w-100 h-100" style="background-color: var(--bs-focus-visible-inner-color);" data-bs-theme="dark" title="#000"><p class="visually-hidden">#000</p></div>
</div>
</td>
<td>
<td class="border-top-1">
<div>
<button class="color-copy" data-clipboard-text="--bs-focus-visible-inner-color" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard" data-bs-placement="left"><code>--bs-focus-visible-inner-color</code></button>
</div>
2 changes: 1 addition & 1 deletion site/content/docs/5.3/dark-mode.md
Original file line number Diff line number Diff line change
@@ -2083,7 +2083,7 @@ sitemap_exclude: true

<h4 class="mt-3">Dark dropdown variant for retro-compatibility</h4>

<div class="d-flex gap-2 flex-wrap border p-3 bg-dark">
<div class="d-flex gap-2 flex-wrap border p-3 bg-black">
<div class="dropdown">
<button class="btn btn-dropdown dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
Dropdown button
8 changes: 4 additions & 4 deletions site/content/docs/5.3/examples/download-app/index.html
Original file line number Diff line number Diff line change
@@ -72,7 +72,7 @@ <h1 class="two-lined">
</button>
</li>
<li>
<button type="button" class="dropdown-item d-flex align-items-center active" data-bs-theme-value="body" aria-pressed="true">
<button type="button" class="dropdown-item d-flex align-items-center active" data-bs-theme-value="auto" aria-pressed="true">
<svg class="me-2"><use href="#ui-auto-mode"></use></svg>
Auto
<svg class="ms-auto d-none"><use href="#check2"></use></svg>
@@ -87,13 +87,13 @@ <h1 class="two-lined">
</header>

<main>
<div class="bg-dark mb-0 mb-md-2 border-dark border-bottom border-1 position-relative" data-bs-theme="dark">
<div class="bg-black mb-0 mb-md-2 border-dark border-bottom border-1 position-relative" data-bs-theme="dark">
<div class="col-12 col-lg-7 out-of-grid h-100 end-0 overflow-hidden">
<img loading="lazy" class="h-100 object-fit-cover" alt="" src="img/Banner_image.png">
</div>
<div class="container-xxl position-relative z-1">
<div class="row">
<div class="col-12 col-lg-5 py-2 bg-dark">
<div class="col-12 col-lg-5 py-2 bg-black">
<h2 class="pt-1 pt-md-3 mb-2 mb-md-3 display-2 text-primary">Implementing mobile designs into code</h2>
<p class="pt-1 mb-2 display-2">A trusted source for developers</p>
<p class="ll-sm pt-1 pt-md-3 mb-3 mb-md-4 fw-bold">From documentation, though repositories, to a showcase mobile application, the Orange Design System provides the elements for developers to implement experiences on mobile iOS and Android operating systems, by integrating brand foundations, design standards, societal and environmental commitments.</p>
@@ -229,7 +229,7 @@ <h2 class="h1 mb-4 mb-md-5 text-center">Do you want to start building your app?
</div>
</div>

<div class="bg-dark py-4 py-md-5 border-bottom border-1 border-dark" data-bs-theme="dark">
<div class="bg-black py-4 py-md-5 border-bottom border-1 border-dark" data-bs-theme="dark">
<div class="container-xxl pt-md-2 pb-2">
<h2 class="h1 mb-4 mb-md-5 text-primary text-center">What you get from the showcase app</h2>
<div class="row">
2 changes: 1 addition & 1 deletion site/content/docs/5.3/examples/form/index.html
Original file line number Diff line number Diff line change
@@ -90,7 +90,7 @@ <h1 class="title">Travel</h1>
</button>
</li>
<li>
<button type="button" class="dropdown-item d-flex align-items-center active" data-bs-theme-value="body" aria-pressed="true">
<button type="button" class="dropdown-item d-flex align-items-center active" data-bs-theme-value="auto" aria-pressed="true">
<svg class="me-2"><use href="#ui-auto-mode"></use></svg>
Auto
<svg class="ms-auto d-none"><use href="#check2"></use></svg>
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
{{< orange-supra mode="languages" aria_label="Supra navigation - Mode selector example" >}}
{{< /orange-supra >}}

{{< orange-global-headers id="global-header-1" mode="theme" supra=true demo=true aria_label="Global navigation - Mode selector example">}}
{{< orange-global-headers id="global-header-1" mode="theme" supra=true aria_label="Global navigation - Mode selector example">}}
{{< /orange-global-headers >}}
</header>
<div class="container-xxl pt-4">
467 changes: 465 additions & 2 deletions site/content/docs/5.3/migration.md

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions site/content/docs/5.3/utilities/borders.md
Original file line number Diff line number Diff line change
@@ -190,10 +190,6 @@ These border variants with **a size CSS class different than `.rounded-0`** shou
## Dividers

{{< example >}}
<div class="bg-dark p-1">
<div class="border-top border-white my-3"></div>
<hr>
</div>
<div class="border-top border-light my-3"></div>
<div class="border-top border-light border-1 my-3"></div>
<div class="border-top border-dark my-3"></div>
8 changes: 4 additions & 4 deletions site/content/docs/5.3/utilities/colors.md
Original file line number Diff line number Diff line change
@@ -79,7 +79,7 @@ Here are some compliant combinations examples for texts:
<p class="text-body-secondary fw-bold">bold secondary text</p>
</div>

<div class="bg-dark p-1" data-bs-theme="dark">
<div class="p-1" data-bs-theme="dark">
<p class="text-white">regular white text</p>
<p class="text-primary">regular primary text</p>
<p class="text-body-secondary">regular secondary text</p>
@@ -127,13 +127,13 @@ Consider our default `.text-primary` utility.
```css
.text-primary {
--bs-text-opacity: 1;
color: rgba(var(--bs-primary-text-rgb), var(--bs-text-opacity)) !important;
color: rgba(var(--bs-primary-rgb), var(--bs-text-opacity)) !important;
}
```

We use an RGB version of our `$primary` (with the value of `241, 110, 0`) Sass variable as a CSS variable and attached a second CSS variable, `--bs-text-opacity`, for the alpha transparency (with a default value `1` thanks to a local CSS variable). That means anytime you use `.text-primary` now, your computed `color` value is `rgba(241, 110, 0, 1)`. The local CSS variable inside each `.text-*` class avoids inheritance issues so nested instances of the utilities don't automatically have a modified alpha transparency.
We use an RGB version of our `--bs-primary` (with the value of `241, 110, 0` in light mode) CSS variable and attached a second CSS variable, `--bs-text-opacity`, for the alpha transparency (with a default value `1` thanks to a local CSS variable). That means anytime you use `.text-primary` now, your computed `color` value is `rgba(241, 110, 0, 1)` in light mode. The local CSS variable inside each `.text-*` class avoids inheritance issues so nested instances of the utilities don't automatically have a modified alpha transparency.

When used in dark mode, `--bs-primary-text-rgb` will use the value of `$supporting-orange` (with the value of `255, 121, 0`).
When used in dark mode, `--bs-primary-rgb` will use the value of (with the value of `255, 121, 0`).

### Example

2 changes: 1 addition & 1 deletion site/layouts/partials/home/masthead.html
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
<a href="/docs/{{ .Site.Params.docs_version }}/migration" class="tag me-2">New in v5.3</a>
<span class="text-body-secondary">Color mode support, expanded color palette, and more!</span>
</p>
<div id="boosted" class="text-bg-dark d-flex align-items-end justify-content-center mx-auto my-3" role="presentation" data-bs-theme="dark">
<div id="boosted" class="bg-black d-flex align-items-end justify-content-center mx-auto my-3" role="presentation" data-bs-theme="dark">
<span class="d-inline-flex mb-3 display-0">B<span class="text-primary bg-transparent">oo</span>sted</span>
</div>
<h1 class="mb-3 display-1">Orange B<span class="text-primary">oo</span>sted<br>with Bootstrap</h1>
4 changes: 2 additions & 2 deletions site/layouts/partials/skippy.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<a id="top"></a><!-- Boosted mod: anchor for back-to-top link -->
<div class="skippy visually-hidden-focusable overflow-hidden position-fixed top-0 end-0 start-0">
<nav aria-label="Skip links" class="container-xxl py-1 ps-5">
<a class="d-inline-flex p-2 ms-3 bg-dark" href="#content">Skip to main content</a>
<a class="d-inline-flex p-2 ms-3 bg-black" href="#content">Skip to main content</a>
{{ if (eq .Page.Layout "docs") -}}
<a class="d-none d-md-inline-flex p-2 bg-dark" href="#bd-docs-nav">Skip to docs navigation</a>
<a class="d-none d-md-inline-flex p-2 bg-black" href="#bd-docs-nav">Skip to docs navigation</a>
{{- end }}
</nav>
</div>
8 changes: 4 additions & 4 deletions site/layouts/shortcodes/orange-global-headers.html
Original file line number Diff line number Diff line change
@@ -134,11 +134,11 @@ <h1 class="title">Title</h1>
</li>
{{- else if eq $mode "theme" }}
<li class="nav-item dropdown">
<button class="nav-link nav-icon dropdown-toggle" id="bd-theme2" aria-expanded="false" data-bs-toggle="dropdown" data-bs-display="static" aria-label="Toggle mode (auto)">
<button class="nav-link nav-icon dropdown-toggle" id="bd-theme{{ cond $demo "2" ""}}" aria-expanded="false" data-bs-toggle="dropdown" data-bs-display="static" aria-label="Toggle mode (auto)">
<svg class="theme-icon-active"><use href="#ui-auto-mode"></use></svg>
<span class="d-lg-none ms-2" id="bd-theme-text2">Toggle mode</span>
<span class="d-lg-none ms-2" id="bd-theme-text{{ cond $demo "2" ""}}">Toggle mode</span>
</button>
<ul class="dropdown-menu dropdown-menu-end mb-2" aria-labelledby="bd-theme-text2">
<ul class="dropdown-menu dropdown-menu-end mb-2" aria-labelledby="bd-theme-text{{ cond $demo "2" ""}}">
<li>
<button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="light" aria-pressed="false">
<svg class="me-2"><use href="#ui-light-mode"></use></svg>
@@ -154,7 +154,7 @@ <h1 class="title">Title</h1>
</button>
</li>
<li>
<button type="button" class="dropdown-item d-flex align-items-center active" data-bs-theme-value="body" aria-pressed="true">
<button type="button" class="dropdown-item d-flex align-items-center active" data-bs-theme-value="auto" aria-pressed="true">
<svg class="me-2"><use href="#ui-auto-mode"></use></svg>
Auto
<svg class="ms-auto d-none"><use href="#check2"></use></svg>
Binary file modified site/static/docs/5.3/assets/img/examples/cards-rtl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified site/static/docs/5.3/assets/img/examples/cards-rtl@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified site/static/docs/5.3/assets/img/examples/cards.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified site/static/docs/5.3/assets/img/examples/cards@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.