diff --git a/.changeset/actionmenu-button-caret-spacing.md b/.changeset/actionmenu-button-caret-spacing.md new file mode 100644 index 00000000000..7e58b5b8db3 --- /dev/null +++ b/.changeset/actionmenu-button-caret-spacing.md @@ -0,0 +1,5 @@ +--- +'@primer/react': patch +--- + +ActionMenu.Button: Fix spacing between text and caret diff --git a/src/ActionMenu.tsx b/src/ActionMenu.tsx index 59735ff01c7..83ac9a255d0 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 ( - -