Skip to content

Commit

Permalink
feat(view switcher): fix viewswitcher border radius (#2751)
Browse files Browse the repository at this point in the history
Co-authored-by: Ddouglasz <[email protected]>
  • Loading branch information
ddouglasz and Ddouglasz authored Mar 19, 2024
1 parent c75b82e commit 12f5f87
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/twenty-paws-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@commercetools-uikit/view-switcher': minor
---

Fix viewswitcher border radius
7 changes: 4 additions & 3 deletions packages/components/view-switcher/src/view-switcher.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ export const getButtonStyles = (
isFirstButton?: TViewSwitcherButtonProps['isFirstButton'],
isLastButton?: TViewSwitcherButtonProps['isLastButton']
) => {
const borderRadius = `${isFirstButton ? designTokens.borderRadius4 : '0'} ${
isLastButton ? `${designTokens.borderRadius4}` : '0 0'
} ${isFirstButton ? designTokens.borderRadius4 : '0'}`;
const borderRadius = `${isFirstButton ? designTokens.borderRadius4 : '0'}
${isLastButton ? `${designTokens.borderRadius4}` : '0'}
${isLastButton ? `${designTokens.borderRadius4}` : '0'}
${isFirstButton ? designTokens.borderRadius4 : '0'}`;

const fontColor = getFontColor(isDisabled, isActive);

Expand Down

0 comments on commit 12f5f87

Please sign in to comment.