Skip to content

Commit

Permalink
fix(kbutton): add important to button disabled styles
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdehaven committed May 14, 2022
1 parent ff64fbf commit ddddf3c
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/components/KButton/KButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,9 @@ export default defineComponent({
}
&:disabled,
&[disabled] {
background-color: var(--grey-300);
color: var(--grey-400);
// Use !important to override conflicting styles
background-color: var(--grey-300) !important;
color: var(--grey-400) !important;
}
}
Expand All @@ -298,8 +299,8 @@ export default defineComponent({
}
&:disabled,
&[disabled] {
background-color: var(--grey-300);
color: var(--grey-400);
background-color: var(--grey-300) !important;
color: var(--grey-400) !important;
}
}
&.danger {
Expand All @@ -317,8 +318,8 @@ export default defineComponent({
}
&:disabled,
&[disabled] {
background-color: var(--grey-300);
color: var(--grey-400);
background-color: var(--grey-300) !important;
color: var(--grey-400) !important;
}
}
Expand All @@ -337,8 +338,8 @@ export default defineComponent({
}
&:disabled,
&[disabled] {
background-color: var(--grey-300);
color: var(--grey-400);
background-color: var(--grey-300) !important;
color: var(--grey-400) !important;
}
}
Expand All @@ -359,8 +360,8 @@ export default defineComponent({
}
&:disabled,
&[disabled] {
border-color: var(--grey-400);
color: var(--grey-400);
border-color: var(--grey-400) !important;
color: var(--grey-400) !important;
}
}
&.btn-link {
Expand All @@ -374,7 +375,7 @@ export default defineComponent({
}
&:disabled,
&[disabled] {
color: var(--grey-400);
color: var(--grey-400) !important;
}
}
Expand Down

0 comments on commit ddddf3c

Please sign in to comment.