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
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