Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/four-bikes-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"reshaped": patch
---

ButtonGroup: Fixed separator color in the disabled button group
4 changes: 4 additions & 0 deletions packages/reshaped/src/components/Button/Button.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,10 @@
--rs-button-group-separator-color: rgba(var(--rs-color-rgb-white), 0.12);
}

&.--disabled {
--rs-button-group-separator-color: var(--rs-color-border-disabled) !important;
}

&.--full-width {
flex-grow: 1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,24 @@ export const selectedColor: StoryObj = {
),
};

export const disabled: StoryObj = {
name: "disabled",
render: () => (
<Example>
<Example.Item title="disabled">
<ToggleButtonGroup selectedColor="critical" value={["1"]}>
<ToggleButton disabled value="1" color="critical">
Button
</ToggleButton>
<ToggleButton disabled value="2" color="critical">
Button
</ToggleButton>
</ToggleButtonGroup>
</Example.Item>
</Example>
),
};

export const className: StoryObj = {
name: "className, attributes",
render: () => (
Expand Down