Skip to content

Commit 10e76e3

Browse files
committed
fix: update full-width variation to once again be added to the parent container as a temp workaround to how theming classes currently get added
1 parent b161128 commit 10e76e3

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

packages/components/bolt-nav-priority/nav-priority.scss

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ bolt-nav-priority {
1515
flex-shrink: 4; // shrink faster than other components in tight spots
1616

1717
@include bolt-if-browser-supports-display-contents {
18-
@media screen and (max-width: #{bolt-breakpoint(xsmall)}) {
18+
@media screen and (max-width: $bolt-navbar-xsmall-bp) {
1919
&.is-ready {
2020
display: contents;
2121
}
@@ -37,7 +37,7 @@ bolt-nav-priority {
3737

3838
.c-bolt-nav-priority {
3939
@include bolt-if-browser-supports-display-contents {
40-
@media screen and (max-width: #{bolt-breakpoint(xsmall)}) {
40+
@media screen and (max-width: $bolt-navbar-xsmall-bp) {
4141
&.is-ready {
4242
display: contents;
4343
}
@@ -68,7 +68,7 @@ bolt-nav-priority {
6868

6969
.c-bolt-nav-priority__primary {
7070
@include bolt-if-browser-supports-display-contents {
71-
@media screen and (max-width: #{bolt-breakpoint(xsmall)}) {
71+
@media screen and (max-width: $bolt-navbar-xsmall-bp) {
7272
.is-ready & {
7373
display: contents;
7474
}
@@ -93,7 +93,7 @@ bolt-nav-priority {
9393

9494
@include bolt-if-browser-supports-display-contents {
9595
.c-bolt-nav-priority__show-more {
96-
@media screen and (max-width: #{bolt-breakpoint(xsmall)}) {
96+
@media screen and (max-width: $bolt-navbar-xsmall-bp) {
9797
display: contents;
9898
}
9999
}
@@ -161,7 +161,7 @@ bolt-nav-priority {
161161
}
162162

163163
@include bolt-if-browser-supports-display-contents {
164-
@media screen and (max-width: #{bolt-breakpoint(xsmall)}) {
164+
@media screen and (max-width: $bolt-navbar-xsmall-bp) {
165165
grid-row: 2 / span 1;
166166
grid-column: 1 / span 6;
167167
width: auto;
@@ -217,7 +217,7 @@ bolt-nav-priority {
217217
cursor: pointer;
218218
position: relative;
219219

220-
@media screen and (max-width: #{bolt-breakpoint(xsmall)}) {
220+
@media screen and (max-width: $bolt-navbar-xsmall-bp) {
221221
border-radius: 0;
222222
border-left-width: 1px;
223223
border-left-color: bolt-theme(headline, 0.2);
@@ -272,7 +272,7 @@ bolt-nav-priority {
272272
}
273273

274274
@include bolt-if-browser-supports-display-contents {
275-
@media screen and (max-width: #{bolt-breakpoint(xsmall)}) {
275+
@media screen and (max-width: $bolt-navbar-xsmall-bp) {
276276
.is-ready & {
277277
grid-row: 1 / span 1;
278278
grid-column: 5 / span 1;
@@ -287,7 +287,7 @@ bolt-nav-priority {
287287
position: relative;
288288
z-index: 10;
289289

290-
@media screen and (max-width: #{bolt-breakpoint(xsmall)}) {
290+
@media screen and (max-width: $bolt-navbar-xsmall-bp) {
291291
@include bolt-visuallyhidden;
292292
}
293293
}
@@ -300,7 +300,7 @@ bolt-nav-priority {
300300
line-height: 0;
301301
font-size: 1em;
302302

303-
@media screen and (max-width: #{bolt-breakpoint(xsmall)}) {
303+
@media screen and (max-width: $bolt-navbar-xsmall-bp) {
304304
font-size: 24px;
305305
}
306306

packages/components/bolt-navbar/src/navbar.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ bolt-navbar {
2323
}
2424
}
2525

26+
// @todo: remove once Navbar refactored to have theming classes added to the `.c-bolt-navbar` inner.
27+
&[width*=full] {
28+
@include bolt-full-bleed;
29+
}
30+
2631
display: block;
2732
overflow: visible;
2833
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);

0 commit comments

Comments
 (0)