@@ -6,6 +6,7 @@ import { Label } from "@/components/ui/label";
66import { Select , SelectContent , SelectItem , SelectTrigger , SelectValue } from "@/components/ui/select" ;
77import { toast } from "sonner" ;
88import { useLanguage } from "@/contexts/LanguageContext" ;
9+ import { cn } from "@/lib/utils" ;
910
1011const LocaleConverter = ( ) => {
1112 const { t } = useLanguage ( ) ;
@@ -132,9 +133,9 @@ const LocaleConverter = () => {
132133 : t ( "localeconverter_hyphen_example" )
133134 }
134135 />
135- < Button onClick = { convertLocale } >
136- < Globe className = "w -4 h -4 mr-2 " />
137- { t ( "localeconverter_convert" ) }
136+ < Button onClick = { convertLocale } className = "shrink-0 px-3" aria-label = { t ( "localeconverter_convert" ) } title = { t ( "localeconverter_convert" ) } >
137+ < Globe className = "h -4 w -4 shrink-0 " />
138+ < span className = "sr-only sm:not-sr-only sm:ml-2" > { t ( "localeconverter_convert" ) } </ span >
138139 </ Button >
139140 </ div >
140141 </ div >
@@ -143,9 +144,9 @@ const LocaleConverter = () => {
143144 < div className = "space-y-3" >
144145 < div className = "flex items-center justify-between" >
145146 < Label > { t ( "localeconverter_result" ) } </ Label >
146- < Button variant = "outline" size = "sm" onClick = { handleCopy } >
147- < Copy className = "w-4 h-4 mr-2 " />
148- { t ( "localeconverter_copy_button" ) }
147+ < Button variant = "outline" size = "sm" onClick = { handleCopy } aria-label = { t ( "localeconverter_copy_button" ) } title = { t ( "localeconverter_copy_button" ) } >
148+ < Copy className = "h-4 w-4 " />
149+ < span className = "sr-only sm:not-sr-only sm:ml-2" > { t ( "localeconverter_copy_button" ) } </ span >
149150 </ Button >
150151 </ div >
151152 < Input value = { result } readOnly className = "font-mono" />
@@ -163,7 +164,7 @@ const LocaleConverter = () => {
163164 onClick = { ( ) =>
164165 setInputLocale ( fromFormat === "hyphen" ? locale . replace ( '_' , '-' ) : locale )
165166 }
166- className = "text-xs"
167+ className = { cn ( "text-xs" , "min-h-9" ) }
167168 >
168169 { locale }
169170 </ Button >
0 commit comments