Skip to content

Commit

Permalink
fix: vertical tabs should correctly display controls with fullWidth
Browse files Browse the repository at this point in the history
  • Loading branch information
ma-efremoff committed Mar 21, 2023
1 parent 977bafc commit 675fbd5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
4 changes: 4 additions & 0 deletions src/dialog/Dialog/Dialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

#{$self}__field-wrapper {
width: 418px;

&_full-width {
width: 100%;
}
}
}

Expand Down
13 changes: 8 additions & 5 deletions src/stories/dialog/fields/01_full_width.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,12 @@ export default {
component: DialogWithSelectStories,
} as ComponentMeta<typeof DialogWithSelectStories>;

const Template: ComponentStory<typeof DialogWithSelectStories> = (args) => (
<DialogWithSelectStories {...args} />
);
const Template: ComponentStory<typeof DialogWithSelectStories> = (args) => {
return <DialogWithSelectStories {...args} />;
};

export const Primary = Template.bind({});
Primary.args = {};
export const HorizontalTabs = Template.bind({});
HorizontalTabs.args = {};

export const VerticalTabs = Template.bind({});
VerticalTabs.args = {verticalTabs: true};

0 comments on commit 675fbd5

Please sign in to comment.