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

Add inverse link mixin and modifier class #2213

Merged
merged 2 commits into from
Apr 30, 2021
Merged

Conversation

36degrees
Copy link
Contributor

@36degrees 36degrees commented Apr 30, 2021

Inverse links are a fairly common thing for service teams to need to implement, and we often see issues with the focus state being implemented incorrectly.

The upcoming changes to link styles will add even more nuance, so providing a reusable mixin and modifier class will save users time and help to make it more likely that link styles are implemented well.

We can also use this new mixin when we update the header component.

Closes #1916

Screenshot 2021-04-30 at 09 21 43

Split out from #2183.

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-2213 April 30, 2021 08:22 Inactive
@vanitabarrett
Copy link
Contributor

@36degrees Change looks good, but I'm not sure 6199cfd belongs in this PR?

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-2213 April 30, 2021 12:21 Inactive
@36degrees
Copy link
Contributor Author

@36degrees Change looks good, but I'm not sure 6199cfd belongs in this PR?

Good shout – rebased to remove it.

Inverse links are a fairly common thing for service teams to need to implement, and we often see issues with the focus state being implemented incorrectly.

The upcoming changes to link styles will add even more nuance, so providing a reusable mixin and modifier class will save users time and help to make it more likely that link styles are implemented well.

We can also use this new mixin when we update the header component.
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-2213 April 30, 2021 12:39 Inactive
@36degrees 36degrees merged commit 32216bf into master Apr 30, 2021
@36degrees 36degrees deleted the inverse-link-mixin branch April 30, 2021 12:41
@36degrees 36degrees mentioned this pull request 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
None yet
Development

Successfully merging this pull request may close these issues.

Add inverse mixin and modifier for links
3 participants