[BOOKINGSG-9244][RYN] migrate navbar component#1171
Conversation
4ca7093 to
989818a
Compare
|
@ghazwan-gt What screen size are you referring to for the overflowing brand |
ad2f991 to
9910eb5
Compare
9e01ab6 to
fec29a6
Compare
| ${MediaQuery.MaxWidth.lg} { | ||
| margin-left: 0rem; | ||
| } |
There was a problem hiding this comment.
treat as 0 by default, this media query can be removed from this class
| export const navCompressed = css` | ||
| height: ${ComponentToken.Navbar["compressed-height"]}; | ||
| `; | ||
|
|
||
| export const navFull = css` | ||
| height: ${ComponentToken.Navbar["full-height"]}; | ||
| `; | ||
|
|
||
| export const navDarkCompressed = css` | ||
| height: calc(${ComponentToken.Navbar["compressed-height"]} - 1px); | ||
| `; | ||
|
|
||
| export const navDarkFull = css` | ||
| height: calc(${ComponentToken.Navbar["full-height"]} - 1px); | ||
| `; |
There was a problem hiding this comment.
as discussed in CR, we can apply the height as a variable to reduce the number of combinations
There was a problem hiding this comment.
there's no need to use useApplyStyle for this, you should be able to apply the variable via css as well
export const navCompressed = css`
${token.nav.height}: ${ComponentToken.Navbar["compressed-height"]};
`;
export const navDark = css`
// ...
`
fc8bfb5 to
4847434
Compare
| !hideNavBranding | ||
| ? styles.navElementsContainerWithBranding | ||
| : null |
There was a problem hiding this comment.
!hideNavBranding && styles.navElementsContainerWithBranding
There was a problem hiding this comment.
hmmm why is the masthead missing in some cases?
There was a problem hiding this comment.
I think it was the issue with running parallel tests. Rerunning the test can gen the masthead. Sometimes the snapshots are not consistent...
There was a problem hiding this comment.
updated: rerunning can only capture masthead for some but not all missing test cases, so I added a function to wait for the masthead to render first


Checklist
classNameis chained correctly withclsx