-
Notifications
You must be signed in to change notification settings - Fork 31
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
Dc subnav add editions switch #6012
Conversation
Size Change: -572 kB (-25%) 🎉 Total Size: 1.68 MB
ℹ️ View Unchanged
|
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.
This is looking pretty great. I've got some thoughts and comments on some small areas but nothing major.
Also, @HarryFischer are there any design requirements for how this edition dropdown should look on mobile?
Oh, and one more very small thing: would it be possible to update the before and after images to be DCR before and after. I think that before image is of Frontend. We could also include a screenshot of frontend and have three columns?
dotcom-rendering/src/web/components/Nav/ExpandedMenu/Column.tsx
Outdated
Show resolved
Hide resolved
))} | ||
|
||
<li> | ||
<ThemeProvider theme={{ ...buttonThemeBrand }}> |
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 know that there is an existing use case for using Emotion theming but I'm nervous adding more as Emotion using React context to provide this value and I suspect in this case we don't need such an advanced solution and can style this button using a more basic approach. Happy to pair on looking at this in more detail.
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.
dotcom-rendering/src/web/components/Nav/ExpandedMenu/Columns.tsx
Outdated
Show resolved
Hide resolved
dotcom-rendering/src/web/components/Nav/ExpandedMenu/Column.tsx
Outdated
Show resolved
Hide resolved
dotcom-rendering/src/web/components/Nav/ExpandedMenu/Columns.tsx
Outdated
Show resolved
Hide resolved
This reverts commit b1b08c4.
…ardian/dotcom-rendering into dc-subnav-add-editions-switch
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 would be happy for this to go through, but it seems like our accessibility metrics have seriously gone down in our Lighthouse test.
Any idea why that is? Would need sorted before merging.
))} | ||
|
||
<li> | ||
<ThemeProvider theme={{ ...buttonThemeBrand }}> |
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.
Co-Authored-By: Ioanna Kokkini <ioannakok@users.noreply.github.com>
⚡️ Lighthouse report for the changes in this PRLighthouse tested 2 URLs Report for Article
Report for Front
|
What does this change?
This adds the editions switch to DCR subnav
Why?
Parity with frontend
Screenshots