Skip to content

Commit

Permalink
fix: include hover/focus styles for certain links
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueSlug committed Apr 26, 2022
1 parent 334632c commit a94c80c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/assets/styles/abstracts/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,11 @@
@content;
}
}

@mixin hover-focus-outline($colour) {
&:focus,
&:hover {
outline: 0.125rem solid var(--fl-linkColor, $colour);
outline-offset: 2px;
}
}
2 changes: 2 additions & 0 deletions src/assets/styles/components/_breadcrumb.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@
}

.breadcrumb__link {
@include hover-focus-outline($mainColour);

color: $mainColour !important;
}
2 changes: 2 additions & 0 deletions src/assets/styles/layout/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
}

.org-header__link {
@include hover-focus-outline($headerOrgLinkColour);

color: $headerOrgLinkColour;
text-decoration: underline;
}
Expand Down

0 comments on commit a94c80c

Please sign in to comment.