Skip to content

Commit 1de8a9f

Browse files
authored
Merge pull request #418 from primer/btn_contrast
Button color contrast improvements
2 parents 4bf14c4 + 5927c06 commit 1de8a9f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/primer-buttons/lib/button.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
i {
2323
font-style: normal;
2424
font-weight: $font-weight-semibold;
25-
opacity: 0.6;
25+
opacity: 0.75;
2626
}
2727

2828
.octicon {

modules/primer-support/lib/mixins/buttons.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
} @else {
4444
&:focus,
4545
&.focus {
46-
box-shadow: 0 0 0 0.2em rgba($bg, 0.3);
46+
box-shadow: 0 0 0 0.2em rgba($bg, 0.4);
4747
}
4848

4949
&:hover,
@@ -86,7 +86,7 @@
8686
background-image: linear-gradient(-180deg, $bg 0%, $bg2 90%);
8787

8888
&:focus {
89-
box-shadow: 0 0 0 0.2em rgba($color, 0.3);
89+
box-shadow: 0 0 0 0.2em rgba($color, 0.4);
9090
}
9191

9292
&:hover {
@@ -147,7 +147,7 @@
147147

148148
&:focus {
149149
border-color: $text-color;
150-
box-shadow: 0 0 0 0.2em rgba($text-color, 0.3);
150+
box-shadow: 0 0 0 0.2em rgba($text-color, 0.4);
151151
}
152152

153153
&:disabled,

0 commit comments

Comments
 (0)