From 3b4cfc642fa1415e99a60615de9959178c26e1bd Mon Sep 17 00:00:00 2001 From: Whitewater Date: Mon, 5 Jun 2023 03:18:53 -0700 Subject: [PATCH] fix: overflow in radio button group (#2687) --- .../component/src/stories/button.stories.tsx | 17 ++++++++++++----- packages/component/src/ui/button/styles.css.ts | 2 +- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/packages/component/src/stories/button.stories.tsx b/packages/component/src/stories/button.stories.tsx index b6b636be92..c19310dbca 100644 --- a/packages/component/src/stories/button.stories.tsx +++ b/packages/component/src/stories/button.stories.tsx @@ -94,11 +94,18 @@ Dropdown.args = { export const RadioGroup: StoryFn = ({ ...props }) => { return ( - - All - Page - Edgeless - + <> + + All + Page + Edgeless + + + Long long text and some more + Lorem ipsum dolor sit amet + Long long text + + ); }; RadioGroup.args = { diff --git a/packages/component/src/ui/button/styles.css.ts b/packages/component/src/ui/button/styles.css.ts index 43c659b02b..e779d13e96 100644 --- a/packages/component/src/ui/button/styles.css.ts +++ b/packages/component/src/ui/button/styles.css.ts @@ -58,7 +58,7 @@ export const radioButton = style({ display: 'flex', justifyContent: 'center', alignItems: 'center', - width: '75px', + padding: '0 30px', height: '24px', borderRadius: '8px', filter: 'drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.1))',