Skip to content

Commit 72e7221

Browse files
hsbtclaude
andcommitted
Keep the primary button color on disabled buttons
Bootstrap's `.btn-primary:disabled` outranks our `.btn-primary` and turns a disabled primary button blue. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent a2b83b1 commit 72e7221

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎source/stylesheets/application.css.scss‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,13 @@ h3 {
119119
.btn-primary {
120120
border-radius: 1rem;
121121
font-family: sans-serif;
122-
color: var(--button-primary-text-color);
123-
background-color: var(--button-primary-color);
124-
border-color: var(--button-primary-color);
122+
123+
&,
124+
&:disabled {
125+
color: var(--button-primary-text-color);
126+
background-color: var(--button-primary-color);
127+
border-color: var(--button-primary-color);
128+
}
125129

126130
&:focus,
127131
&:focus:not(:focus-visible),

0 commit comments

Comments
 (0)