Skip to content

Commit

Permalink
Dark mode: add new navbar mode selector example
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond committed Dec 26, 2023
1 parent 9d3b206 commit caa433a
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions site/content/docs/5.3/examples/navbar-mode-selector/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
layout: examples
title: Navbar with mode selector
aliases:
- "/examples/navbar-mode-selector"
- "/docs/examples/navbar-mode-selector"
---

<main>
<h1 class="visually-hidden">Navbar containing a mode selector</h1>
<header class="sticky-top" data-bs-theme="dark">
{{< orange-supra mode="languages" aria_label="Supra navigation - Mode selector example" >}}
{{< /orange-supra >}}

{{< orange-global-headers id="global-header-1" mode="theme" demo=true aria_label="Global navigation - Mode selector example">}}
{{< /orange-global-headers >}}
</header>
<div class="container-xxl pt-4">
<h1>Title</h1>
<p class="lead">Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum mollitia provident fuga animi voluptatem consequatur perspiciatis cum quos maiores, nesciunt dicta et dolor repellat eum odio id nihil, eos nostrum?</p>
<button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-secondary">Secondary</button>
</div>
</main>
2 changes: 2 additions & 0 deletions site/data/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@
description: "Demonstration of all responsive and container options for the navbar."
- name: Navbar sticky
description: "Single navbar example of a sticky-top navbar along with some additional content."
- name: Navbar mode selector
description: "Single navbar example with a mode selector to switch between light and dark mode."

- category: Pages
description: "Complete reusable pages that can be found in the Design Guidelines."
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit caa433a

Please sign in to comment.