Skip to content

Commit 5e87eff

Browse files
authored
Fix btn-primary in flash alerts (#1991)
* Fix btn-primary in a flash alert * Create cuddly-mugs-peel.md
1 parent 1938596 commit 5e87eff

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.changeset/cuddly-mugs-peel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/css": patch
3+
---
4+
5+
Fix `btn-primary` in flash alerts

src/alerts/flash.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,12 @@
6363
color: var(--color-fg-muted);
6464
}
6565

66-
&.btn-primary .octicon {
67-
color: inherit;
66+
&.btn-primary {
67+
background-clip: border-box;
68+
69+
.octicon {
70+
color: inherit;
71+
}
6872
}
6973
}
7074

0 commit comments

Comments
 (0)