Skip to content

Commit

Permalink
Merge branch 'main' into 2835/bug/ons-grid__col-sticky-css-functional…
Browse files Browse the repository at this point in the history
…ity-is-broken
  • Loading branch information
adi-unni committed Dec 1, 2023
2 parents c470473 + a1a2a5d commit 7563cef
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.17.1
v20.10.0
28 changes: 14 additions & 14 deletions __snapshots__/layout/_template.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ exports[`base page template matches the favicons block override snapshot 1`] = `



<header class="ons-header " role="banner">
<header class="ons-header" role="banner">



Expand Down Expand Up @@ -377,7 +377,7 @@ exports[`base page template matches the footer block override snapshot 1`] = `



<header class="ons-header " role="banner">
<header class="ons-header" role="banner">



Expand Down Expand Up @@ -641,7 +641,7 @@ exports[`base page template matches the full configuration snapshot 1`] = `



<header class="ons-header ons-header--neutral" role="banner">
<header class="ons-header ons-header--neutral" role="banner">



Expand Down Expand Up @@ -876,8 +876,8 @@ exports[`base page template matches the full configuration snapshot 1`] = `
<ul class="ons-header-service-nav__list">

<li class="ons-header-service-nav__item ons-header-service-nav__item--mobile">






Expand All @@ -889,17 +889,17 @@ exports[`base page template matches the full configuration snapshot 1`] = `
</svg>




Jacky Turner

Jacky Turner
</li>

<li class="ons-header-service-nav__item ons-header-service-nav__item--mobile">


<a href="#0" class="ons-header-service-nav__link">Sign out</a>

<a href="#0" class="ons-header-service-nav__link">Sign out</a>
</li>

</ul>
Expand Down Expand Up @@ -1930,7 +1930,7 @@ exports[`base page template matches the meta block override snapshot 1`] = `



<header class="ons-header " role="banner">
<header class="ons-header" role="banner">



Expand Down Expand Up @@ -2153,7 +2153,7 @@ exports[`base page template matches the social block override snapshot 1`] = `



<header class="ons-header " role="banner">
<header class="ons-header" role="banner">



Expand Down
4 changes: 4 additions & 0 deletions src/components/header/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -229,4 +229,8 @@
margin-top: -5px !important;
}
}

.ons-btn {
top: 0 !important;
}
}
34 changes: 17 additions & 17 deletions src/components/header/_macro.njk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{% set currentLanguageISOCode = currentLanguage.ISOCode %}
{% endif %}

<header class="ons-header {% if params.classes %} {{ params.classes }}{% endif %}{% if params.variants is not string %}{% for variant in params.variants %} ons-header--{{ variant }}{% endfor %}{% else %} ons-header--{{ params.variants }}{% endif %}" role="banner">
<header class="ons-header{% if params.classes %} {{ params.classes }}{% endif %}{% if params.variants is not string %}{% for variant in params.variants %} ons-header--{{ variant }}{% endfor %}{% else %} ons-header--{{ params.variants }}{% endif %}" role="banner">
{{
onsBrowserBanner({
"lang": currentLanguageISOCode,
Expand Down Expand Up @@ -141,22 +141,22 @@
<ul class="ons-header-service-nav__list">
{% for item in params.serviceLinks.itemsList %}
<li class="ons-header-service-nav__item ons-header-service-nav__item--mobile">
{% if item.iconType %}
{{
onsIcon({
"iconType": item.iconType
})
}}
{% endif %}
{% if item.url %}
<a
href="{{ item.url }}"
class="ons-header-service-nav__link"
{% if item.id %} id="{{ item.id }}"{% endif %}
>{% if item.title %}{{ item.title }}{% elif item.text %}{{ item.text }}{% endif %}</a>
{% else %}
{% if item.title %}{{ item.title }}{% elif item.text %}{{ item.text }}{% endif %}
{% endif %}
{% if item.iconType %}
{{
onsIcon({
"iconType": item.iconType
})
}}
{% endif %}
{% if item.url %}
<a
href="{{ item.url }}"
class="ons-header-service-nav__link"
{% if item.id %} id="{{ item.id }}"{% endif %}
>{% if item.title %}{{ item.title }}{% elif item.text %}{{ item.text }}{% endif %}</a>
{% else %}
{% if item.title %}{{ item.title }}{% elif item.text %}{{ item.text }}{% endif %}
{% endif %}
</li>
{% endfor %}
</ul>
Expand Down

0 comments on commit 7563cef

Please sign in to comment.