Skip to content

Commit dfae67d

Browse files
committed
fix(ui): resolve AccountButton lint errors
1 parent d6d839c commit dfae67d

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

packages/ui/src/mosaic/account/account-button.view.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export const accountButtonRecipe = defineSlotRecipe(theme => ({
127127
background: 'none',
128128
border: 'none',
129129
cursor: 'pointer',
130-
textAlign: 'left',
130+
textAlign: 'start',
131131
color: theme.color.cardForeground,
132132
...theme.text('sm'),
133133
_hover: { backgroundColor: theme.color.muted },
@@ -232,7 +232,7 @@ export const accountButtonRecipe = defineSlotRecipe(theme => ({
232232
margin: 0,
233233
font: 'inherit',
234234
color: 'inherit',
235-
textAlign: 'left',
235+
textAlign: 'start',
236236
cursor: 'pointer',
237237
},
238238
name: {
@@ -303,7 +303,7 @@ export const accountButtonRecipe = defineSlotRecipe(theme => ({
303303
background: 'none',
304304
border: 'none',
305305
cursor: 'pointer',
306-
textAlign: 'left',
306+
textAlign: 'start',
307307
...theme.text('sm'),
308308
color: theme.color.mutedForeground,
309309
_hover: { backgroundColor: theme.color.muted },
@@ -334,7 +334,7 @@ export const accountButtonRecipe = defineSlotRecipe(theme => ({
334334
background: 'none',
335335
border: 'none',
336336
cursor: 'pointer',
337-
textAlign: 'left',
337+
textAlign: 'start',
338338
...theme.text('sm'),
339339
color: theme.color.mutedForeground,
340340
_hover: { backgroundColor: theme.color.muted },
@@ -852,6 +852,7 @@ export function AccountButtonTrigger() {
852852
render={({ ref, ...triggerProps }) => (
853853
<button
854854
ref={ref}
855+
type='button'
855856
{...triggerProps}
856857
{...trigger}
857858
>
@@ -866,7 +867,7 @@ export function AccountButtonTrigger() {
866867
<Icon
867868
name='chevron-up-down'
868869
size='sm'
869-
sx={t => ({ marginLeft: 'auto', color: t.color.mutedForeground })}
870+
sx={t => ({ marginInlineStart: 'auto', color: t.color.mutedForeground })}
870871
/>
871872
</button>
872873
)}

0 commit comments

Comments
 (0)