Skip to content

Commit b384225

Browse files
Fix Button styles while dragging inactive variants (#6277)
Co-authored-by: primer[bot] <119360173+primer[bot]@users.noreply.github.com>
1 parent 4c9aa4b commit b384225

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/cuddly-frogs-bow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": patch
3+
---
4+
5+
Fix Button styles while dragging inactive variants

packages/react/src/Button/ButtonBase.module.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,8 @@
503503
/* Inactive */
504504

505505
&:where([data-inactive]),
506-
&:where([data-inactive]):hover {
506+
&:where([data-inactive]):hover,
507+
&:where([data-inactive]):active {
507508
color: var(--button-inactive-fgColor);
508509
cursor: auto;
509510
background-color: var(--button-inactive-bgColor);

0 commit comments

Comments
 (0)