File tree Expand file tree Collapse file tree
packages/ui/src/mosaic/user-button Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ export const userButtonRecipe = defineSlotRecipe(theme => ({
128128 background : 'none' ,
129129 border : 'none' ,
130130 cursor : 'pointer' ,
131- textAlign : 'left ' ,
131+ textAlign : 'start ' ,
132132 color : theme . color . cardForeground ,
133133 ...theme . text ( 'sm' ) ,
134134 _hover : { backgroundColor : theme . color . muted } ,
@@ -233,7 +233,7 @@ export const userButtonRecipe = defineSlotRecipe(theme => ({
233233 margin : 0 ,
234234 font : 'inherit' ,
235235 color : 'inherit' ,
236- textAlign : 'left ' ,
236+ textAlign : 'start ' ,
237237 cursor : 'pointer' ,
238238 } ,
239239 name : {
@@ -304,7 +304,7 @@ export const userButtonRecipe = defineSlotRecipe(theme => ({
304304 background : 'none' ,
305305 border : 'none' ,
306306 cursor : 'pointer' ,
307- textAlign : 'left ' ,
307+ textAlign : 'start ' ,
308308 ...theme . text ( 'sm' ) ,
309309 color : theme . color . mutedForeground ,
310310 _hover : { backgroundColor : theme . color . muted } ,
@@ -335,7 +335,7 @@ export const userButtonRecipe = defineSlotRecipe(theme => ({
335335 background : 'none' ,
336336 border : 'none' ,
337337 cursor : 'pointer' ,
338- textAlign : 'left ' ,
338+ textAlign : 'start ' ,
339339 ...theme . text ( 'sm' ) ,
340340 color : theme . color . mutedForeground ,
341341 _hover : { backgroundColor : theme . color . muted } ,
@@ -858,6 +858,7 @@ export function UserButtonTrigger() {
858858 render = { ( { ref, ...triggerProps } ) => (
859859 < button
860860 ref = { ref }
861+ type = 'button'
861862 { ...triggerProps }
862863 { ...trigger }
863864 >
@@ -872,7 +873,7 @@ export function UserButtonTrigger() {
872873 < Icon
873874 name = 'chevron-up-down'
874875 size = 'sm'
875- style = { { marginLeft : 'auto' , color : theme . color . mutedForeground } }
876+ style = { { marginInlineStart : 'auto' , color : theme . color . mutedForeground } }
876877 />
877878 </ button >
878879 ) }
You can’t perform that action at this time.
0 commit comments