Skip to content

Commit

Permalink
makes disabled styles take precedence over inactive styles
Browse files Browse the repository at this point in the history
  • Loading branch information
mperrotti committed Nov 14, 2023
1 parent 8b35273 commit f245fe2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/components/primer/beta/button.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,8 @@ summary.Button {
}
}

.Button--inactive {
/* `disabled` takes precedence over `inactive` */
.Button--inactive:not([aria-disabled='true']):not(:disabled) {
background-color: var(--button-inactive-bgColor);
border: 0;
color: var(--button-inactive-fgColor);
Expand Down

0 comments on commit f245fe2

Please sign in to comment.