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/healthy-cameras-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/polaris': patch
---

Fixed disabled state for `monochromePlain` variant in `Button`
3 changes: 1 addition & 2 deletions polaris-react/src/components/Button/Button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -956,8 +956,7 @@
}

&.disabled {
color: currentColor;
opacity: 0.4;
color: var(--p-color-text-disabled);

svg {
fill: currentColor;
Expand Down
6 changes: 6 additions & 0 deletions polaris-react/src/components/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,12 @@ export function DisabledState() {
<Button variant="plain" tone="critical" disabled>
Buy shipping label
</Button>
{/* Visual check to ensure the button color is not inherited from the parent */}
<Box color="text-critical">
<Button variant="monochromePlain" disabled>
Buy shipping label
</Button>
</Box>
</ButtonGroup>
);
}
Expand Down