Skip to content

Commit e48ecf1

Browse files
authored
Increase specificity so that ActionGroup collapsed text only icons don't render extra padding (#6284)
* Increase specificity so for ActionGroup with overflowMode="collapse" and buttonLabelBehavior="hide" * Add chromatic story
1 parent ebcd4ee commit e48ecf1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

packages/@adobe/spectrum-css-temp/components/button/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ a.spectrum-ActionButton {
230230
padding-inline-end: var(--spectrum-actionbutton-icon-padding-x);
231231
}
232232

233-
.spectrum-ActionGroup-itemIcon {
233+
.spectrum-ActionGroup-itemIcon.spectrum-ActionGroup-itemIcon {
234234
padding-inline-end: 0;
235235
}
236236
}

packages/@react-spectrum/actiongroup/chromatic/ActionGroup.chromatic.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,13 @@ DisabledKeys.story = {
314314
name: 'disabledKeys'
315315
};
316316

317+
export const OverflowAndHide = () =>
318+
render({overflowMode: 'collapse', buttonLabelBehavior: 'hide', selectionMode: 'multiple'}, dataItems);
319+
320+
OverflowAndHide.story = {
321+
name: 'overflowMode: collapse, buttonLabelBehavior: hide'
322+
};
323+
317324
function render(props, items) {
318325
return (
319326
<Flex rowGap="size-300" margin="size-100" width="100%" direction="column">

0 commit comments

Comments
 (0)