Skip to content

Commit

Permalink
Fix padding for ios
Browse files Browse the repository at this point in the history
  • Loading branch information
istarkov committed Jun 4, 2024
1 parent 193d446 commit 35ddcb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/sdk-components-react-radix/src/theme/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ export const getButtonStyles = (

let sizeStyles: EmbedTemplateStyleDecl[] = [];
if (size === "icon") {
// Set explicit paddings for IOS Safari to prevent the icon from collapsing
// h-10 w-10
sizeStyles = [tc.h(10), tc.w(10)].flat();
sizeStyles = [tc.h(10), tc.w(10), tc.px(6), tc.py(3)].flat();
}
if (size === "sm") {
// h-9 rounded-md px-3
Expand Down

0 comments on commit 35ddcb7

Please sign in to comment.