Skip to content

Commit

Permalink
Use variable for the active border of the UnderlineNav (#1472)
Browse files Browse the repository at this point in the history
* Replace hex with variable

* Create rude-rockets-flow.md
  • Loading branch information
simurai authored Jun 23, 2021
1 parent 8088676 commit 8541ed1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/rude-rockets-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/css": patch
---

Use variable for the active border of the UnderlineNav
3 changes: 1 addition & 2 deletions src/navigation/underline-nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
&[aria-current]:not([aria-current=false]) {
font-weight: $font-weight-bold;
color: var(--color-underlinenav-text-active);
// stylelint-disable-next-line primer/borders
border-bottom-color: #f9826c; // custom coral
border-bottom-color: var(--color-underlinenav-border-active);
outline: 1px dotted transparent; // Support Firefox custom colors
outline-offset: -1px;

Expand Down

0 comments on commit 8541ed1

Please sign in to comment.