Skip to content

Commit

Permalink
Improve Counter colors when nested in Button (#1712)
Browse files Browse the repository at this point in the history
  • Loading branch information
simurai authored Dec 15, 2022
1 parent be7dbf7 commit 1568f7f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/giant-rings-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/view-components": patch
---

Improve `Counter` colors when nested in `Button`
5 changes: 5 additions & 0 deletions app/components/primer/beta/button.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ summary.Button {
.Button-visual {
display: flex;
pointer-events: none; /* allow click handler to work, avoiding visuals */

& .Counter {
color: inherit;
background-color: var(--color-btn-counter-bg);
}
}

.Button-label {
Expand Down

0 comments on commit 1568f7f

Please sign in to comment.