Skip to content

Commit

Permalink
fix: use withIcon modifier instead of withoutIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
jongomez committed Nov 7, 2023
1 parent 8696680 commit 387b31f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const tabItemClasses = {
medium: 'lsd-tab-item--medium',
large: 'lsd-tab-item--large',

tabWithoutIcon: 'lsd-tab-item--without-icon',
withIcon: 'lsd-tab-item--with-icon',
}
6 changes: 3 additions & 3 deletions packages/lsd-react/src/components/TabItem/TabItem.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const TabItemStyles = css`
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
justify-content: center;
&:hover {
text-decoration: underline;
Expand Down Expand Up @@ -41,8 +41,8 @@ export const TabItemStyles = css`
}
}
.${tabItemClasses.tabWithoutIcon} {
justify-content: center;
.${tabItemClasses.withIcon} {
justify-content: space-between;
}
.${tabItemClasses.disabled} {
Expand Down
2 changes: 1 addition & 1 deletion packages/lsd-react/src/components/TabItem/TabItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const TabItem: React.FC<TabItemProps> & {
tabItemClasses[size],
selected && tabItemClasses.selected,
props.disabled && tabItemClasses.disabled,
!icon && tabItemClasses.tabWithoutIcon,
!!icon && tabItemClasses.withIcon,
)}
onClick={onClick}
>
Expand Down

0 comments on commit 387b31f

Please sign in to comment.