From 5e87effa671b194e188f699a79b246bdf61bd191 Mon Sep 17 00:00:00 2001 From: simurai Date: Tue, 22 Mar 2022 15:29:18 +0900 Subject: [PATCH] Fix `btn-primary` in flash alerts (#1991) * Fix btn-primary in a flash alert * Create cuddly-mugs-peel.md --- .changeset/cuddly-mugs-peel.md | 5 +++++ src/alerts/flash.scss | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .changeset/cuddly-mugs-peel.md diff --git a/.changeset/cuddly-mugs-peel.md b/.changeset/cuddly-mugs-peel.md new file mode 100644 index 00000000..64586dbe --- /dev/null +++ b/.changeset/cuddly-mugs-peel.md @@ -0,0 +1,5 @@ +--- +"@primer/css": patch +--- + +Fix `btn-primary` in flash alerts diff --git a/src/alerts/flash.scss b/src/alerts/flash.scss index 6a599ad9..8b635f4f 100644 --- a/src/alerts/flash.scss +++ b/src/alerts/flash.scss @@ -63,8 +63,12 @@ color: var(--color-fg-muted); } - &.btn-primary .octicon { - color: inherit; + &.btn-primary { + background-clip: border-box; + + .octicon { + color: inherit; + } } }