Skip to content
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

Fix taxonomy navigation (AB) small link font & refactor CSS #1020

Merged
merged 4 commits into from
Aug 6, 2018

Conversation

vanitabarrett
Copy link
Contributor

@vanitabarrett vanitabarrett commented Aug 3, 2018

Trello: https://trello.com/c/I9TueAJ5/95-font-size-of-topics-collections-on-mobile-is-small

This PR:

  • Increases font size of Topic and Collection links on mobile from 14px to 16px.
  • Tweaks spacing of links and headings
  • Reorders CSS for taxonomy_navigation to make it easier to read/follow
  • Remove CSS override for component

Before (mobile)

screen shot 2018-08-03 at 14 58 23

After (mobile)

screen shot 2018-08-03 at 14 59 19

Before (desktop)

screen shot 2018-08-03 at 14 58 09

After (desktop)

screen shot 2018-08-03 at 14 58 01

Component guide for this PR:
https://government-frontend-pr-1020.herokuapp.com/component-guide

Example:
https://government-frontend-pr-1020.herokuapp.com/government/publications/academies-finance-and-assurance-steering-group-terms-of-reference?ABTest-ContentPagesNav=B

Vanita Barrett added 4 commits August 3, 2018 13:42
Link text for Topic and Collection links was 14px on mobile. We shouldn't really be using 14px font-size on mobile, especially not for important links.

Other content surrounding that was also using 16px, so we should match that.
Re-organise the CSS so it follows the HTML order - makes it easier to read
Replace $gutter / 6 with $gutter-one-third / 2
We were overriding the CSS for the heading component. It's bad practice to do this, we should instead make use of the parameters which can be passed into the component.

This will make the headings render as 19px on desktop and 16px on mobile (as opposed to 16px on all devices).
@vanitabarrett vanitabarrett merged commit fa9bafc into master Aug 6, 2018
@vanitabarrett vanitabarrett deleted the fix-tax-nav-small-font branch August 6, 2018 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants