File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,7 @@ export const Controls = ({
203203 className = { b ( 'saved-only-button' , { savedOnly} ) }
204204 size = "xl"
205205 onClick = { handleSavedOnly }
206+ selected = { savedOnly }
206207 >
207208 < Icon data = { Save } size = { ICON_SIZE } className = { b ( 'icon' , { savedOnly} ) } />
208209 { i18n ( Keyset . ActionSavedOnly ) }
Original file line number Diff line number Diff line change @@ -74,14 +74,16 @@ export const Search = ({
7474 handleChange . cancel ( ) ;
7575 setValue ( '' ) ;
7676 onSubmit ( '' ) ;
77+ inputRef . current ?. focus ( ) ;
7778 }
7879 } ;
7980
8081 return (
8182 < button
8283 className = { b ( 'input-icon' ) }
8384 onClick = { handleClick }
84- aria-label = { i18n ( Keyset . SearchAction ) }
85+ aria-label = { value ? i18n ( Keyset . ClearAction ) : undefined }
86+ aria-hidden = { ! value }
8587 >
8688 < Icon size = { iconSize } data = { iconData } />
8789 </ button >
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export enum Keyset {
2323 PromptSignInOnLike = 'prompt_sign_in_on_like' ,
2424 SignIn = 'Sign In' ,
2525 Save = 'save' ,
26- SearchAction = 'search_action ' ,
26+ ClearAction = 'clear_action ' ,
2727}
2828
2929const en = {
@@ -51,7 +51,7 @@ const en = {
5151 ] ,
5252 [ Keyset . SignIn ] : 'Sign In' ,
5353 [ Keyset . Save ] : 'Save' ,
54- [ Keyset . SearchAction ] : 'Find ' ,
54+ [ Keyset . ClearAction ] : 'Clear ' ,
5555} ;
5656
5757const ru = {
@@ -80,7 +80,7 @@ const ru = {
8080 ] ,
8181 [ Keyset . SignIn ] : 'Войти' ,
8282 [ Keyset . Save ] : 'Сохранить' ,
83- [ Keyset . SearchAction ] : 'Найти ' ,
83+ [ Keyset . ClearAction ] : 'Очистить ' ,
8484} ;
8585
8686export const i18n = addComponentKeysets ( { en, ru} , NAMESPACE ) ;
You can’t perform that action at this time.
0 commit comments