Skip to content

Commit

Permalink
fix(examples): apply correctly .header-minimized to the Navbars exa…
Browse files Browse the repository at this point in the history
…mple (#2354)

Co-authored-by: Louis-Maxime Piton <louismaxime.piton@orange.com>
  • Loading branch information
julien-deramond and louismaximepiton committed Nov 6, 2023
1 parent e09dbc1 commit 24b4afc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions site/content/docs/5.3/examples/navbars/index.html
Expand Up @@ -27,8 +27,8 @@ <h1 class="visually-hidden">Navbars Boosted example</h1>
</header>

<div class="b-example-divider"></div>
<header>
{{< orange-global-headers id="global-header-0" mode="actions" minimized=true aria_label="Global navigation - Minimized without title example" >}}
<header class="header-minimized">
{{< orange-global-headers id="global-header-0" mode="actions" aria_label="Global navigation - Minimized without title example" >}}
{{< /orange-global-headers >}}
</header>

Expand Down
4 changes: 1 addition & 3 deletions site/layouts/shortcodes/orange-global-headers.html
Expand Up @@ -10,7 +10,6 @@
* demo: if the global shortcode is called from the documentation (default: false)
* labels: use generic labels instead of real-life labels (default: false)
* labels_end: justify labels at the end (default: false)
* minimized: display a minimized global header (default: false)
* navigation: add a navigation bar under the global header (default: false)
* supra: if the global header is used with a supra bar (default: false)
* aria_label: set the aria-label for the current global header
Expand All @@ -24,13 +23,12 @@
{{- $demo := .Get "demo" | default false -}}
{{- $labels := .Get "labels" | default false -}}
{{- $labels_end := .Get "labels_end" | default false -}}
{{- $minimized := .Get "minimized" | default false -}}
{{- $navigation := .Get "navigation" | default false -}}
{{- $supra := .Get "supra" | default false -}}
{{- $aria_label := .Get "aria_label"}}
{{- $input := .Inner -}}

<nav class="navbar navbar-dark bg-dark navbar-expand-lg{{ cond $minimized " header-minimized" "" }}" aria-label="{{ $aria_label }}">
<nav class="navbar navbar-dark bg-dark navbar-expand-lg" aria-label="{{ $aria_label }}">
<div class="container-xxl">
<div class="navbar-brand me-auto{{ cond (or $navigation $responsive_logo) "" " me-lg-4" }}">
<a class="stretched-link" href="#">
Expand Down

0 comments on commit 24b4afc

Please sign in to comment.