From 30fc9c6221c9022a81984eabeed7edfe9d8340fb Mon Sep 17 00:00:00 2001 From: Chef Hachioji <72719739+hachiojidev@users.noreply.github.com> Date: Wed, 11 Aug 2021 16:21:48 +0900 Subject: [PATCH] style(uikit-buttonmenu): Fix extra margin (#239) --- .../pancake-uikit/src/__tests__/components/buttonmenu.test.tsx | 1 - packages/pancake-uikit/src/components/ButtonMenu/ButtonMenu.tsx | 1 - 2 files changed, 2 deletions(-) diff --git a/packages/pancake-uikit/src/__tests__/components/buttonmenu.test.tsx b/packages/pancake-uikit/src/__tests__/components/buttonmenu.test.tsx index 931774ab7..95f2f93d7 100644 --- a/packages/pancake-uikit/src/__tests__/components/buttonmenu.test.tsx +++ b/packages/pancake-uikit/src/__tests__/components/buttonmenu.test.tsx @@ -27,7 +27,6 @@ it("renders correctly", () => { .c0 > button, .c0 > a { - margin-left: 2px; -webkit-flex: auto; -ms-flex: auto; flex: auto; diff --git a/packages/pancake-uikit/src/components/ButtonMenu/ButtonMenu.tsx b/packages/pancake-uikit/src/components/ButtonMenu/ButtonMenu.tsx index 28f3a9245..552114fbd 100644 --- a/packages/pancake-uikit/src/components/ButtonMenu/ButtonMenu.tsx +++ b/packages/pancake-uikit/src/components/ButtonMenu/ButtonMenu.tsx @@ -25,7 +25,6 @@ const StyledButtonMenu = styled.div` & > button, & > a { - margin-left: ${({ fullWidth }) => (fullWidth ? "0px" : "2px")}; // To avoid focus shadow overlap flex: ${({ fullWidth }) => (fullWidth ? 1 : "auto")}; }