diff --git a/src/elements/button/common/button-common.scss b/src/elements/button/common/button-common.scss index 8cb055662d..7875c23093 100644 --- a/src/elements/button/common/button-common.scss +++ b/src/elements/button/common/button-common.scss @@ -82,7 +82,7 @@ $icon-only: ':where([data-slot-names~=icon], [icon-name]):not([data-slot-names~= } :host([negative]) { - --sbb-button-color-disabled-background: var(--sbb-color-anthracite); + --sbb-button-color-disabled-background: var(--sbb-color-charcoal); --sbb-button-color-disabled-text: var(--sbb-color-aluminium); } diff --git a/src/elements/button/mini-button-group/mini-button-group.stories.ts b/src/elements/button/mini-button-group/mini-button-group.stories.ts index a26525d70c..3aa4a6d9cb 100644 --- a/src/elements/button/mini-button-group/mini-button-group.stories.ts +++ b/src/elements/button/mini-button-group/mini-button-group.stories.ts @@ -31,6 +31,12 @@ const negative: InputType = { }, }; +const disabled: InputType = { + control: { + type: 'boolean', + }, +}; + const accessibilityLabel: InputType = { control: { type: 'text', @@ -40,19 +46,29 @@ const accessibilityLabel: InputType = { const defaultArgTypes: ArgTypes = { size, negative, + disabled, 'accessibility-label': accessibilityLabel, }; const defaultArgs: Args = { size: size.options![1], negative: false, + disabled: false, 'accessibility-label': '', }; -const Template = (args: Args): TemplateResult => +const Template = ({ disabled, ...args }: Args): TemplateResult => html` - - + + @@ -73,6 +89,12 @@ export const Negative: StoryObj = { args: { ...defaultArgs, negative: true }, }; +export const NegativeDisabled: StoryObj = { + render: Template, + argTypes: defaultArgTypes, + args: { ...defaultArgs, negative: true, disabled: true }, +}; + export const SizeS: StoryObj = { render: Template, argTypes: defaultArgTypes, diff --git a/src/elements/core/styles/mixins/buttons.scss b/src/elements/core/styles/mixins/buttons.scss index 96f3d2dcf9..c6a19c7159 100644 --- a/src/elements/core/styles/mixins/buttons.scss +++ b/src/elements/core/styles/mixins/buttons.scss @@ -85,7 +85,7 @@ --sbb-button-color-default-background: var(--sbb-color-black-alpha-0); --sbb-button-color-hover-background: var(--sbb-color-charcoal); --sbb-button-color-active-background: var(--sbb-color-iron); - --sbb-button-color-disabled-background: var(--sbb-color-black-alpha-0); + --sbb-button-color-disabled-background: var(--sbb-color-charcoal); --sbb-button-color-disabled-border: var(--sbb-color-smoke); --sbb-button-color-disabled-text: var(--sbb-color-smoke); }