Skip to content

Commit eaf6c30

Browse files
committed
Decreasing padding around icon in expand button
1 parent 9f0b5b7 commit eaf6c30

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/compass-components/src/components/document-list/document-actions-group.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ const actionsGroupSignalPopover = css({
4444
display: 'block !important',
4545
});
4646

47+
const expandButton = css({
48+
'& > div:has(svg)': {
49+
paddingLeft: 3,
50+
paddingRight: 3,
51+
},
52+
});
53+
4754
function useElementParentHoverState<T extends HTMLElement>(
4855
ref: React.RefObject<T>
4956
): boolean {
@@ -163,7 +170,7 @@ const DocumentActionsGroup: React.FunctionComponent<
163170
aria-pressed={expanded}
164171
data-testid="expand-document-button"
165172
onClick={onExpand}
166-
className={actionsGroupItem}
173+
className={cx(actionsGroupItem, expandButton)}
167174
tooltipText={
168175
expanded
169176
? 'Collapse all embedded fields'

0 commit comments

Comments
 (0)