Skip to content

Commit

Permalink
fix(action-pad): fix horizontal action group alignment (#10359)
Browse files Browse the repository at this point in the history
**Related Issue:** #10307

## Summary

Removes an extra border-block-end which was causing a layout bug
  • Loading branch information
alisonailea authored Sep 25, 2024
1 parent 5401ea6 commit 7b03745
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
max-inline-size: var(--calcite-action-pad-expanded-max-width, auto);
}

::slotted(calcite-action-group:not(:last-of-type)) {
@apply border-b;
:host([layout="vertical"]) {
::slotted(calcite-action-group:not(:last-of-type)) {
@apply border-b;
}
}

.container {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,27 @@ export const simple = (args: ActionPadStoryArgs): string => html`
</calcite-action-pad>
`;

export const withGroups = (): string =>
html`<calcite-action-pad layout="horizontal">
<calcite-action-group>
<calcite-action text="Add" icon="plus" appearance="solid" scale="m"></calcite-action>
<calcite-action text="Save" icon="save" appearance="solid" scale="m"></calcite-action>
</calcite-action-group>
<calcite-action-group>
<calcite-action text="Layers" icon="layers" appearance="solid" scale="m"></calcite-action>
<calcite-action text="Basemaps" icon="layer-basemap" appearance="solid" scale="m"></calcite-action>
</calcite-action-group>
<calcite-tooltip
slot="expand-tooltip"
id="calcite-tooltip-c19274e3-ff3b-6168-ef1e-8a700b056e1c"
role="tooltip"
overlay-positioning="absolute"
placement="auto"
style="visibility: hidden; pointer-events: none; position: absolute;"
>Toggle Action Pad</calcite-tooltip
>
</calcite-action-pad>`;

export const darkModeRTL_TestOnly = (): string => html`
<calcite-action-pad position="start" dir="rtl" class="calcite-mode-dark">
<calcite-action-group>
Expand Down

0 comments on commit 7b03745

Please sign in to comment.