Skip to content

Commit

Permalink
refactor(flat-components): reduce a:visited specificity (#1396)
Browse files Browse the repository at this point in the history
  • Loading branch information
crimx committed Mar 1, 2022
1 parent 4f75b16 commit 6c0af07
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/flat-components/src/theme/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ textarea {

a {
color: var(--link);
&:visited {
color: var(--link-visited);
}
&:focus {
color: var(--link-focus);
}
Expand All @@ -35,3 +32,8 @@ textarea {
-webkit-appearance: none;
resize: none;
}

// reduce specificity
:where(a):visited {
color: var(--link-visited);
}

0 comments on commit 6c0af07

Please sign in to comment.