Skip to content

Commit

Permalink
fix(fuselage): OptionInput margins and alignment (#1161)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliajforesti authored Sep 12, 2023
1 parent 385170c commit 8782385
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
8 changes: 0 additions & 8 deletions packages/fuselage/src/components/Menu/V2/Menu.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ export const MenuDisplayExample: ComponentStory<typeof Menu> = (args) => {
<MenuItemContent>Extended</MenuItemContent>
<MenuItemInput>
<RadioButton
mi={16}
onChange={() => setDisplay('extended')}
checked={display === 'extended'}
/>
Expand All @@ -131,7 +130,6 @@ export const MenuDisplayExample: ComponentStory<typeof Menu> = (args) => {
<MenuItemContent>Medium</MenuItemContent>
<MenuItemInput>
<RadioButton
mi={16}
onChange={() => setDisplay('medium')}
checked={display === 'medium'}
/>
Expand All @@ -142,7 +140,6 @@ export const MenuDisplayExample: ComponentStory<typeof Menu> = (args) => {
<MenuItemContent>Condensed</MenuItemContent>
<MenuItemInput>
<RadioButton
mi={16}
onChange={() => setDisplay('condensed')}
checked={display === 'condensed'}
/>
Expand All @@ -166,7 +163,6 @@ export const MenuDisplayExample: ComponentStory<typeof Menu> = (args) => {
<MenuItemContent>Activities</MenuItemContent>
<MenuItemInput>
<RadioButton
mi={16}
onChange={() => setSortBy('activity')}
checked={sortBy === 'activity'}
/>
Expand All @@ -177,7 +173,6 @@ export const MenuDisplayExample: ComponentStory<typeof Menu> = (args) => {
<MenuItemContent>Name</MenuItemContent>
<MenuItemInput>
<RadioButton
mi={16}
onChange={() => setSortBy('alphabetical')}
checked={sortBy === 'alphabetical'}
/>
Expand All @@ -190,7 +185,6 @@ export const MenuDisplayExample: ComponentStory<typeof Menu> = (args) => {
<MenuItemContent>Unread</MenuItemContent>
<MenuItemInput>
<CheckBox
mi={16}
checked={groupByUnread}
onChange={() => setGroupByUnread(!groupByUnread)}
/>
Expand All @@ -201,7 +195,6 @@ export const MenuDisplayExample: ComponentStory<typeof Menu> = (args) => {
<MenuItemContent>Favorites</MenuItemContent>
<MenuItemInput>
<CheckBox
mi={16}
checked={groupByFav}
onChange={() => setGroupByFav(!groupByFav)}
/>
Expand All @@ -212,7 +205,6 @@ export const MenuDisplayExample: ComponentStory<typeof Menu> = (args) => {
<MenuItemContent>Types</MenuItemContent>
<MenuItemInput>
<CheckBox
mi={16}
checked={groupByTypes}
onChange={() => setGroupByTypes(!groupByTypes)}
/>
Expand Down
3 changes: 2 additions & 1 deletion packages/fuselage/src/components/Option/Option.styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,12 @@ $variants: (
&__input {
display: flex;

justify-content: center;
justify-content: flex-end;
align-items: center;

min-width: lengths.size(20);
min-height: lengths.size(20);
margin-inline-start: lengths.margin(16);
margin-inline-end: lengths.margin(-12);
}

Expand Down

0 comments on commit 8782385

Please sign in to comment.