You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added `Hero.ButtonGroup` for rendering `Button` and `ActionMenu` children. `Hero.ButtonGroup` is now the de facto way to display buttons in the `Hero`.
6
+
7
+
⚠️ `Hero.PrimaryAction` and `Hero.SecondaryAction` are now deprecated. Please migrate over to `Hero.ButtonGroup` as they will be removed in a future release.
⚠️ Breaking change: Removed the `imageBackgroundColor` prop from `River.Visual`, `RiverBreakout.Visual`, and `RiverBreakoutTabs.Visual`.
6
+
7
+
The `River``gridline` variant now applies the full-bleed visual background layout by default. Remove `imageBackgroundColor="subtle"` from `River.Visual` when using the `gridline` variant.
8
+
9
+
Remove `imageBackgroundColor` from `RiverBreakout.Visual` and `RiverBreakoutTabs.Visual` without replacement. Their default visual treatments are unchanged.
10
+
11
+
The background treatment is not applied to the default `River` variant or either `RiverBreakout` variant.
12
+
13
+
Updated the River `gridline` variant tablet layout with a `618px` max-width and lateral gridlines.
-[Padding on all sides](https://stunning-chainsaw-j82glqz.pages.github.io/brand/storybook/?path=/story/components-river-features-gridline-variants--grid-line-visual-padding-all)
Copy file name to clipboardExpand all lines: .changeset/soft-banners-sparkle.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,3 +4,4 @@
4
4
5
5
- Restored rounded corners to `CTABanner` while preserving square edges when grid lines are enabled.
6
6
- Improved `ButtonGroup` to forward custom class names alongside its default styles.
7
+
- Added native `ActionMenu` child support to `ButtonGroup`, including automatic sizes and positional variants, and the `CTABanner.ButtonGroup` wrapper.
This is the default variant for the ButtonGroup component. The first button in the group is the primary button and the second button is the secondary button.
22
+
This is the default variant for the ButtonGroup component. The first item in the group uses the primary button variant and the second uses the secondary button variant.
23
23
24
24
```jsx live
25
25
<ButtonGroup>
@@ -28,9 +28,30 @@ This is the default variant for the ButtonGroup component. The first button in t
28
28
</ButtonGroup>
29
29
```
30
30
31
+
### Action menus
32
+
33
+
`ButtonGroup` supports up to two `Button` or `ActionMenu` children and applies a default `variant` to each one.
34
+
35
+
Explicit `variant` overrides to `Button` or `ActionMenu.Button` will override the default values.
36
+
37
+
`buttonSize` applies to both child types. Because `ActionMenu` supports only `small` and `medium`, it remains `medium` when `buttonSize="large"`. Set `size` on `ActionMenu` to override the inherited size.
The ButtonGroup component can be rendered in different sizes in `medium` and `large`sizes. The default size is `medium`.
54
+
The ButtonGroup component supports `small`, `medium`, and `large`buttons. The default size is`medium`. ActionMenu children support `small` and`medium`.
0 commit comments