-
Notifications
You must be signed in to change notification settings - Fork 1
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
TWE-21 - BE - Secondary Navigation #357
TWE-21 - BE - Secondary Navigation #357
Conversation
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.
Thanks @SharmaineLim this is looking great 👍
Left a few suggestions
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.
Thanks @SharmaineLim
Happy for this to move forward once the RevisionMixin recommendation is addressed.
Link to Ticket
Description of Changes Made
It might be easier to review this on a per-commit view.
This PR does 2 things:
BasePage
that other pages can inherit from, instead of having to add the same 5 mixins to each page type.Design screenshots of the secondary nav
Potentially outdated design:
Alternative nav menu content:
BasePage
Main commit: 88d3089
BasePage
that is a subclass all the usual mixins all page types share.BasePage
.ContactMixin
to prevent circular dependencies.Secondary nav
NavigationSetMixin
(49cbc88). Similar toThemeColourMixin
andDivisionMixin
, this:navigation_set
to determine which navigation set to show: this will use the override if it's set, but otherwise will use the inherited navigation setNavigationSetMixin
to theBasePage
(9a08aa6), and addDivisionMixin
to theBasePage
while we're at it– except for the homepage (TWE-20).<header>
tags, but it would need tweaks on the FE side because it's currently styled to be used only by the primary navigation.How to Test
Screenshots
Snippet editor
Page editor
MR Checklist
Unit tests
Documentation
Browser testing
Data protection
Light and dark mode
Accessibility
Sustainability
Pattern library