Skip to content

Commit

Permalink
fix(tab): update styles from pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSisb committed Apr 6, 2023
1 parent ef33b69 commit 37a498a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/paste-core/components/tabs/src/Tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const getTabBoxStyles = (orientation: Orientation, variant: Variants): BoxStyleP
bottom: '-1px',
/* Selected State */
_selected: {
borderColor: isInverse ? 'colorBorderInverseStrongest' : 'colorBorderWeak',
borderColor: isInverse ? 'colorBorderInverse' : 'colorBorderWeak',
borderBottomColor: isInverse ? 'colorBorderInverseWeakest' : 'colorBorderWeakest',
color: isInverse ? 'colorTextInverse' : 'colorTextPrimary',
},
Expand All @@ -90,12 +90,12 @@ const getTabBoxStyles = (orientation: Orientation, variant: Variants): BoxStyleP
_selected_hover: {
borderColor: isInverse ? 'colorBorderInverseStrongest' : 'colorBorderWeak',
color: isInverse ? 'colorTextInverse' : 'colorTextPrimaryStronger',
borderBottomColor: isInverse ? 'colorBorderInverseWeakest' : 'colorBorderInverseStrongest',
borderBottomColor: isInverse ? 'colorBorderInverseWeakest' : 'colorBorderWeakest',
},
/* Focus states */
_focus: {
outline: 'none',
borderColor: isInverse ? 'colorBorderInverse' : 'colorBorderPrimary',
borderColor: 'colorBorderPrimary',
boxShadow: 'shadowFocusInset',
borderBottomColor: 'colorBorderPrimary',
},
Expand All @@ -104,8 +104,7 @@ const getTabBoxStyles = (orientation: Orientation, variant: Variants): BoxStyleP
borderWidth: 'borderWidth10',
boxShadow: 'shadowFocusInset',
color: isInverse ? 'colorTextInverse' : 'colorTextPrimary',
borderColor: isInverse ? 'colorBorderInverse' : 'colorBorderPrimary',
borderBottomColor: isInverse ? 'colorBorderInverseStrongest' : 'colorBorderPrimary',
borderColor: 'colorBorderPrimary',
},
_disabled_focus: {
borderColor: isInverse ? 'colorBorderInverseWeaker' : 'colorBorderWeak',
Expand Down Expand Up @@ -148,7 +147,7 @@ const Tab = React.forwardRef<HTMLDivElement, TabProps>(({children, element, ...t
cursor={props['aria-disabled'] ? 'not-allowed' : 'pointer'}
element={elementName}
fontSize="fontSize30"
lineHeight="lineHeight10"
lineHeight="lineHeight30"
fontWeight="fontWeightMedium"
overflow={orientation !== 'vertical' ? 'hidden' : undefined}
position="relative"
Expand Down

0 comments on commit 37a498a

Please sign in to comment.