feat: o-header subnav primary link styles #1853
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe your changes
The App has a requirement to have a sub navigation where link items have 'primary' styles and are capitalised with font weight 600. Currently, the
.o-header__nav-link--primary
class provides these styles for primary navigation links, but no equivalent modifier exists for the sub navigation.o-header__subnav-link
.To address this, this introduces.o-header__subnav-link--primary
style modifier for the sub navigation. Additionally, the shared styles are now extracted into a reusable mixin.Now updated to apply the modifier class directly to
.o-header__subnav--primary
instead of individually to the child item links. This also includes background colour update to usepaper
colour so it is styled more like the main navigation.Issue ticket number and link
Jira ticket: https://financialtimes.atlassian.net/jira/software/c/projects/AT/boards/1853?selectedIssue=AT-6340
Link to Figma designs
Figma: https://www.figma.com/design/qYx7j1N3c2qIjJpknCTyPu/De-Fruiting-the-App-%F0%9F%8D%93?node-id=661-91803&node-type=section&t=xyFXvqn98yEKoayT-0
A few small questions:
.o-header__subnav-link--primary
a suitable name for this?Screenshot
.o-header__subnav-link--primar
style in use within the App Life & Arts navigation:Checklist before requesting a review
percy
label for o-[COMPONENT] orchromatic
label for o3-[COMPONENT] on my PR before merging and after review. Find more details in CONTRIBUTING.md