Skip to content

Commit

Permalink
fix(Stepper): fix disabled background color
Browse files Browse the repository at this point in the history
  • Loading branch information
mainframev authored and DSil committed Dec 11, 2023
1 parent edfc88b commit c397d9f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ const stepperButtonMixin = ({ disabled, active }: { disabled: boolean; active?:
"[&_svg]:rounded-circle",
"focus:outline-0",
"[&_svg]:focus:outline-blue-normal [&_svg]:focus:outline [&_svg]:focus:outline-2",
active ? "[&_svg]:bg-blue-normal" : "[&_svg]:bg-cloud-normal",
!disabled && [
active
? "[&_svg]:bg-blue-normal hover:[&_svg]:bg-blue-normal-hover [&_svg]:active:focus:shadow-[inset_0_0_0_2px_var(--palette-blue-light-active)]"
: "[&_svg]:bg-cloud-normal hover:[&_svg]:bg-cloud-normal-hover [&_svg]:active:focus:shadow-[inset_0_0_0_2px_var(--palette-cloud-normal-active)]",
? "hover:[&_svg]:bg-blue-normal-hover [&_svg]:active:focus:shadow-[inset_0_0_0_2px_var(--palette-blue-light-active)]"
: "hover:[&_svg]:bg-cloud-normal-hover [&_svg]:active:focus:shadow-[inset_0_0_0_2px_var(--palette-cloud-normal-active)]",
],
disabled && "[&_svg]:bg-cloud-normal",
);

const StepperStateless = ({
Expand Down

0 comments on commit c397d9f

Please sign in to comment.