Skip to content

Commit d3bf507

Browse files
committed
Story code style
1 parent 1c7377b commit d3bf507

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

packages/react/tabs/src/Tabs.stories.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -405,15 +405,14 @@ const triggerClass = css({
405405

406406
const RECOMMENDED_CSS__TABS__CONTENT = {
407407
flexGrow: 1,
408-
padding: '1em',
409-
fontWeight: '300',
410-
fontSize: '0.85em',
411-
lineHeight: '1.65',
412408
};
413409

414410
const contentClass = css({
415411
...RECOMMENDED_CSS__TABS__CONTENT,
416-
412+
padding: '1em',
413+
fontWeight: '300',
414+
fontSize: '0.85em',
415+
lineHeight: '1.65',
417416
'&[data-orientation="horizontal"]': { borderTop: 'none' },
418417
'&[data-orientation="vertical"]': { borderLeft: 'none' },
419418
});
@@ -423,9 +422,7 @@ const show = keyframes({
423422
to: { opacity: 1, transform: 'translateY(0px)' },
424423
});
425424

426-
const animatedContentClass = css({
427-
...RECOMMENDED_CSS__TABS__CONTENT,
428-
425+
const animatedContentClass = css(contentClass, {
429426
'&[data-state="active"]': {
430427
animation: `${show} 400ms ease`,
431428
},

0 commit comments

Comments
 (0)