-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MWPW-151517] - Remove condition for promobar hidden on mobile from gnav #2538
Changes from 16 commits
dcea240
429001e
9e0a3ef
85727af
c1ccdaa
abcc080
07638b9
b2debae
de2769d
300b96e
01db884
3570a90
d28cea4
4655b21
a91f411
58ba4ae
33992d6
a2d8d53
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
--global-height-nav: 64px; | ||
--global-height-breadcrumbs: 33px; | ||
/* stylelint-disable-next-line custom-property-pattern */ | ||
--global-height-navPromo: 65px; | ||
--global-height-navPromo: 72px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Have there been any considerations regarding the two-line, 80px use-case utilizing a min-height here? To me it seems like that use-case would lead to CLS currently. (Suggested CLS Strategy within the design specs) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to the design specifications, the goal is to ensure that the feds promobar displays as a single line on all viewports. This character count limit is also included in the authoring documentation, following the design specifications. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I noticed it spawns on two lines between 1200 and 1270px There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @narcis-radu is right, the Promo spans two rows between 1200 and 1287px. Either the copy needs to be adapted or some styles. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. Based on discussions with Joel Blytt the character count limit in design specs will be updated so that promobar displays on single line for this range also. |
||
--feds-totalheight-nav: calc(var(--feds-height-nav, --global-height-nav) + var(--feds-height-breadcrumbs, --global-height-breadcrumbs)); | ||
|
||
/* Colors */ | ||
|
@@ -706,16 +706,14 @@ header:not(.global-navigation) ~ main { | |
*/ | ||
header.global-navigation { | ||
height: var(--global-height-nav); | ||
Deva309 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
visibility: hidden; | ||
overmyheadandbody marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
|
||
@media (min-width: 900px) { | ||
header.global-navigation.has-promo { | ||
height: auto; | ||
/* stylelint-disable-next-line custom-property-pattern */ | ||
min-height: calc(var(--global-height-nav) + var(--global-height-navPromo)); | ||
} | ||
header.global-navigation.has-promo { | ||
height: auto; | ||
min-height: calc(var(--global-height-nav) + var(--global-height-navPromo)); | ||
} | ||
|
||
@media (min-width: 900px) { | ||
header.global-navigation.has-breadcrumbs { | ||
padding-bottom: var(--global-height-breadcrumbs); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any box-size model properties adapted to justify this change. Why is it needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this was needed to compensate the 40px padding which was not included in height and the bottom-most link in the large menu was getting cut off from the scrolling as shown.