Skip to content

Commit 0777234

Browse files
authored
fix(action-group): Honor flex-grow on slotted actions (#7690)
**Related Issue:** #7687 ## Summary - Add flex grow to container - Add screenshot test
1 parent df1d71b commit 0777234

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

packages/calcite-components/src/components/action-group/action-group.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
}
1818

1919
.container {
20-
@apply flex flex-col;
20+
@apply flex flex-col flex-grow;
2121
}
2222

2323
:host([columns="1"]) {

packages/calcite-components/src/components/action-group/action-group.stories.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ export default {
1111
...storyFilters(),
1212
};
1313

14+
export const honorsFlexGrow = (): string => html`<style>
15+
calcite-action {
16+
flex-grow: 1;
17+
}
18+
</style>
19+
<calcite-action-group style="width:600px" layout="horizontal">
20+
<calcite-action icon="bell" alignment="center"></calcite-action>
21+
<calcite-action icon="biking" alignment="center"></calcite-action>
22+
<calcite-action icon="bluetooth" alignment="center"></calcite-action>
23+
</calcite-action-group>`;
24+
1425
export const gridCenteringOfActionsInAGroup = (): string => html`
1526
<div style="width:400px">
1627
<calcite-action-group layout="${select("layout", ["horizontal", "vertical", "grid"], "grid")}">

0 commit comments

Comments
 (0)