Skip to content

Commit

Permalink
chore(react19): update sizing of Icon in viewSwitcher and stamp conde…
Browse files Browse the repository at this point in the history
…nsed states
  • Loading branch information
ByronDWall committed Jan 8, 2025
1 parent f6ea4f3 commit 9341c70
Show file tree
Hide file tree
Showing 4 changed files with 191 additions and 177 deletions.
2 changes: 1 addition & 1 deletion packages/components/stamp/src/stamp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const Stamp = ({
const Icon =
props.icon &&
cloneElement(props.icon, {
size: '30',
size: '20',
color: getIconColor(allProps, true),
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const ViewSwitcherButton = (props: TViewSwitcherButtonProps) => {
`}
>
{cloneElement(props.icon, {
size: props.isCondensed ? '30' : '40',
size: props.isCondensed ? '20' : '40',
})}
</span>
)}
Expand Down
4 changes: 2 additions & 2 deletions storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"@storybook/react": "^8.2.9",
"@storybook/react-vite": "^8.2.9",
"@storybook/test": "^8.2.9",
"@swc/plugin-emotion": "^4.0.0",
"@vitejs/plugin-react-swc": "^3.7.0",
"@swc/plugin-emotion": "^8.0.3",
"@vitejs/plugin-react-swc": "^3.7.2",
"prop-types": "15.8.1",
"react": "19.0.0",
"react-dom": "19.0.0",
Expand Down
Loading

0 comments on commit 9341c70

Please sign in to comment.