-
Notifications
You must be signed in to change notification settings - Fork 29
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
[Fairground 🎡] Expanded nav alignment and styling #11691
Conversation
Size Change: +114 B (+0.01%) Total Size: 867 kB
ℹ️ View Unchanged
|
8a951b2
to
44b2116
Compare
Hello 👋! When you're ready to run Chromatic, please apply the You will need to reapply the label each time you want to run Chromatic. |
// const wrapperMainMenuStyles = css` | ||
// background-color: rgba(0, 0, 0, 0.5); | ||
// ${getZIndex('expanded-veggie-menu-wrapper')} | ||
// left: 0; | ||
// top: 0; | ||
// /* | ||
// IMPORTANT NOTE: | ||
// we need to specify the adjacent path to the a (current) tag | ||
// to apply styles to the nested tabs due to the fact we use ~ | ||
// to support NoJS | ||
// */ | ||
// /* stylelint-disable-next-line selector-type-no-unknown */ | ||
// ${`#${navInputCheckboxId}`}:checked ~ div & { | ||
// ${from.desktop} { | ||
// display: block; | ||
// overflow: visible; | ||
// } | ||
// } |
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.
Are these comment left over for a specific reason?
|
||
columnInput.addEventListener('keydown', function(e){ | ||
// keyCode: 13 => Enter key | keyCode: 32 => Space key | ||
if (e.keyCode === 13 || e.keyCode === 32) { |
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.
FYI keyCode
is deprecated in favour of code
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.
Did you mean to request a review from @guardian/dotcom-platform specifically? Is there a place where we should focus our attention? I’ve left a few questions and notes, but unsure if they are helpful or only on existing things copied in a new place…
dotcom-rendering/src/components/Masthead/Titlepiece/ExpandedNav/ExpandedNavColumn.tsx
Outdated
Show resolved
Hide resolved
dotcom-rendering/src/components/Masthead/Titlepiece/Titlepiece.tsx
Outdated
Show resolved
Hide resolved
Hey @mxdvl, sorry this one is for me to review and continue with. I think @frederickobrien might have forgotten to add me as a reviewer - have fixed that. Will take dotcom-platform off the list as this is hard to review without sufficient relevant context. I'll try to check in with the WebX team about these changes next week Useful info: this is a branch from another branch and when eventually merged, will be sitting behind a 0% test until ready. |
ac8da14
to
6812e2d
Compare
44b2116
to
b236842
Compare
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.
Great work!
...endering/src/components/Masthead/Titlepiece/ExpandedNav/ExpandedNavCollapseSectionButton.tsx
Outdated
Show resolved
Hide resolved
import { nestedOphanComponents } from '../../../../lib/ophan-helpers'; | ||
import type { LinkType } from '../../../../model/extract-nav'; | ||
import { palette as themePalette } from '../../../../palette'; | ||
import { pillarWidthsPx } from '../titlepieceSharedStyles'; | ||
|
||
const pillarHeight = 42; |
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.
maybe we could bring this into the config / constants file we have set up?
dotcom-rendering/src/components/Masthead/Titlepiece/ExpandedNav/ExpandedNavSections.tsx
Outdated
Show resolved
Hide resolved
dotcom-rendering/src/components/Masthead/Titlepiece/ExpandedNav/ExpandedNavSearchBar.tsx
Outdated
Show resolved
Hide resolved
dotcom-rendering/src/components/Masthead/Titlepiece/ExpandedNav/ExpandedNavSearchBar.tsx
Outdated
Show resolved
Hide resolved
b236842
to
69df4e5
Compare
803f79e
to
940f176
Compare
c676cf4
to
a87945f
Compare
c969955
to
e58569d
Compare
e58569d
to
b687cc5
Compare
Seen on PROD (merged by @frederickobrien 8 minutes and 17 seconds ago) Please check your changes! |
Following on from #11572, this adjusts the alignment and styling of the new masthead expanded nav components to align (eh? eh?) with new designs.
The components are not reactive with this implementation (i.e. the expanded nav is constantly in the expanded state) but it looks as it should in that state. With a delicious new veggie burger all the pieces will be combined.
Some things to note:
palette.ts
hub rather than being imported directly from SourceWhat this does not do:
To be followed up with another PR in the chain.
Screenshots
Desktop
LeftCol
Wide