Skip to content

Commit 9ba64f3

Browse files
committed
fix(Item.Action): sizes
1 parent a310b63 commit 9ba64f3

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

src/components/actions/ItemAction/ItemAction.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,13 @@ const ItemActionElement = tasty({
7777
outlineOffset: 1,
7878
cursor: { '': 'pointer', disabled: 'default' },
7979

80-
'$icon-size': 'min($action-icon-size, ($action-size - .5x))',
80+
Icon: {
81+
fontSize: 'min($icon-size, ($action-size - .5x))',
82+
},
83+
84+
RightIcon: {
85+
fontSize: 'min($icon-size, ($action-size - .5x))',
86+
},
8187
},
8288
variants: {
8389
// Default theme

src/components/content/Item/Item.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ const ItemElement = tasty({
281281
},
282282
'$inline-compensation': '.5x',
283283
'$min-inline-padding': '(1x - 1bw)',
284-
'$action-icon-size': '$icon-size',
285284

286285
Icon: DEFAULT_ICON_STYLES,
287286

src/components/fields/TextInput/TextInputBase.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export const INPUT_WRAPPER_STYLES: Styles = {
7474
'': '#purple-03.0',
7575
'invalid & focused': '#danger.50',
7676
},
77+
preset: 't3',
7778
radius: true,
7879
cursor: 'text',
7980
color: {

src/data/item-themes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ export const ITEM_ACTION_BASE_STYLES: Styles = {
3737
},
3838
placeSelf: 'center',
3939

40+
// Side padding for the action buttons
41+
'$side-padding': '(($size - $action-size - 2bw) / 2)',
4042
// Size using custom property
4143
'$action-size': 'min(max((2x + 2bw), ($size - 1x - 2bw)), (4x - 2bw))',
4244

0 commit comments

Comments
 (0)