Skip to content

Commit a40a506

Browse files
farosFreedJess Divers
andauthored
feat: APPS-3527 change breakpoints from standard small to 850px (#858)
* fix: change breakpoints from standard small to 850px * fix: 850px comment --------- Co-authored-by: Jess Divers <[email protected]>
1 parent 33212fd commit a40a506

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

packages/vue-component-library/src/lib-components/NavPrimary.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ defineExpose({ closeSlot })
154154
const { width } = useWindowSize()
155155
156156
// Use computed to check if it's mobile based on window width
157-
const isMobile = computed(() => width.value <= 750) // Use 750px for mobile breakpoint
157+
const mobileBreakpoint = 850 // change scss breakpoints in ftva _header-sticky.scss, _nav-primary.scss, _site-brand-bar.scss
158+
const isMobile = computed(() => width.value <= mobileBreakpoint) // Use 850px for mobile breakpoint
158159
159160
// toggle Mobile-only menu
160161
function toggleMobileMenu() {

packages/vue-component-library/src/styles/ftva/_header-sticky.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
line-height: normal;
1919
}
2020
}
21-
@media #{$small} {
21+
@media (max-width: 850px) {
2222
.primary {
2323
padding-inline: 18px;
2424
}

packages/vue-component-library/src/styles/ftva/_nav-primary.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
}
114114

115115
// MOBILE MENU STYLES
116-
@media #{$small} {
116+
@media (max-width: 850px) {
117117
display: flex;
118118
flex-direction: column;
119119
grid-auto-flow: unset;

packages/vue-component-library/src/styles/ftva/_site-brand-bar.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.ftva.site-brand-bar {
22
background-color: var(--ftva-off-black);
3-
height: 110px;
3+
height: 0px;
44
.ucla-text {
55
@include ftva-site-wordmark;
66
color: white;
@@ -10,4 +10,7 @@
1010
text-transform: uppercase;
1111
}
1212
}
13+
@media (min-width: 850px) {
14+
height: 110px;
15+
}
1316
}

0 commit comments

Comments
 (0)