From 6529c6eee4efbadf9e1b073b00b2360d9e8d1374 Mon Sep 17 00:00:00 2001 From: Siddharth Kshetrapal Date: Fri, 4 Mar 2022 15:40:41 +0100 Subject: [PATCH 1/4] Fix spacing between Text and caret for ActionMenu.Button --- .changeset/actionmenu-button-caret-spacing.md | 5 ++++ src/ActionMenu.tsx | 28 ++++++++++++++----- 2 files changed, 26 insertions(+), 7 deletions(-) create mode 100644 .changeset/actionmenu-button-caret-spacing.md diff --git a/.changeset/actionmenu-button-caret-spacing.md b/.changeset/actionmenu-button-caret-spacing.md new file mode 100644 index 00000000000..566a642faf4 --- /dev/null +++ b/.changeset/actionmenu-button-caret-spacing.md @@ -0,0 +1,5 @@ +--- +'@primer/react': patch +--- + +Fix spacing between Text and caret for ActionMenu.Button diff --git a/src/ActionMenu.tsx b/src/ActionMenu.tsx index 59735ff01c7..6b537e4b2a6 100644 --- a/src/ActionMenu.tsx +++ b/src/ActionMenu.tsx @@ -8,6 +8,7 @@ import {Divider} from './ActionList/Divider' import {ActionListContainerContext} from './ActionList/ActionListContainerContext' import {Button, ButtonProps} from './Button' import {MandateProps} from './utils/types' +import {SxProp, merge} from './sx' type MenuContextProps = Pick< AnchoredOverlayProps, @@ -73,13 +74,26 @@ const Anchor = React.forwardRef((props, anchorRef) => { - return ( - -