Skip to content

Commit 039578a

Browse files
[ButtonGroup] Update variant plain prop name (#10222)
### WHAT is this pull request doing? Update `ButtonGroup` variant styles to match the changes from #10090 ### How to 🎩 Check that this story is getting the plain button group item variant |Next branch|This PR|Production| |-|-|-| |<img width="321" alt="Screenshot 2023-08-24 at 2 36 27 PM" src="https://github.com/Shopify/polaris/assets/20652326/54bff50b-f4b1-4540-a891-7f3c4a7afaf7">|<img width="306" alt="Screenshot 2023-08-24 at 2 37 27 PM" src="https://github.com/Shopify/polaris/assets/20652326/3dd5578e-51ad-4469-82fe-61db3440b936">|<img width="303" alt="Screenshot 2023-08-24 at 2 37 12 PM" src="https://github.com/Shopify/polaris/assets/20652326/7141b6a8-9589-4746-a7d7-eb9229a6c61d">|
1 parent e814c0e commit 039578a

File tree

1 file changed

+1
-1
lines changed
  • polaris-react/src/components/ButtonGroup/components/Item

1 file changed

+1
-1
lines changed

polaris-react/src/components/ButtonGroup/components/Item/Item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function Item({button}: ItemProps) {
1818
const className = classNames(
1919
styles.Item,
2020
focused && styles['Item-focused'],
21-
button.props.plain && styles['Item-plain'],
21+
button.props.variant === 'plain' && styles['Item-plain'],
2222
);
2323

2424
return (

0 commit comments

Comments
 (0)