Skip to content

Commit

Permalink
Add additional :not selectors for flash classes (#2292)
Browse files Browse the repository at this point in the history
  • Loading branch information
camertron committed Oct 31, 2022
1 parent b4207b4 commit 9a4f2ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/tame-monkeys-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/css": patch
---

Add additional :not selectors for flash classes
4 changes: 2 additions & 2 deletions src/alerts/flash.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}

// Close button
.flash-close {
.flash-close:not(.Banner-close) {
float: right;
padding: $spacer-3;
margin: -$spacer-3;
Expand All @@ -51,7 +51,7 @@
}

// Action button
.flash-action {
.flash-action:not(.Banner-actions) {
float: right;
// stylelint-disable-next-line primer/spacing
margin-top: -3px;
Expand Down

0 comments on commit 9a4f2ff

Please sign in to comment.