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

Update tabs to use core link mixin #2209

Merged
merged 1 commit into from
Apr 30, 2021
Merged

Update tabs to use core link mixin #2209

merged 1 commit into from
Apr 30, 2021

Conversation

36degrees
Copy link
Contributor

Tabs are progressively enhanced from a set of links, which is what users see if JavaScript is not enabled.

Apply the common link styles mixin, which includes the new link style treatments, to the tabs. The common link styles mixin also includes the focus state, so we no longer need to apply that separately.

When we progressively enhance the tabs, the only thing we then need to change about the links is the link colour, which is already handled by the inclusion of the govuk-link-style-text mixin.

Using the text link style mixin for this component prepares us for the new link styles which will now be inherited from the mixins.

There should be no visual change to the component.

Split out from #2183.

@36degrees 36degrees added this to Needs review 🔍 in Design System Sprint Board via automation Apr 29, 2021
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-2209 April 29, 2021 16:37 Inactive
Tabs are progressively enhanced from a set of links, which is what users see if JavaScript is not enabled.

Apply the common link styles mixin, which includes the new link style treatments, to the tabs. The common link styles mixin also includes the focus state, so we no longer need to apply that separately.

When we progressively enhance the tabs, the only thing we then need to change about the links is the link colour, which is already handled by the inclusion of the `govuk-link-style-text` mixin.

Using the text link style mixin for this component prepares us for the new link styles which will now be inherited from the mixins.
@36degrees 36degrees changed the title Update tabs to use text link style mixin Update tabs to use core link mixin Apr 29, 2021
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-2209 April 29, 2021 17:00 Inactive
Copy link
Member

@hannalaakso hannalaakso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The styles before and after match 👍

@36degrees 36degrees merged commit e91922b into master Apr 30, 2021
Design System Sprint Board automation moved this from Needs review 🔍 to Done 🏁 Apr 30, 2021
@36degrees 36degrees deleted the tab-link-styles branch April 30, 2021 10:50
@36degrees 36degrees moved this from Done 🏁 to Ready to release 🚀 in Design System Sprint Board May 5, 2021
@36degrees 36degrees added this to the v3.12.0 milestone May 5, 2021
@36degrees 36degrees moved this from Ready to release 🚀 to Done 🏁 in Design System Sprint Board May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants