Skip to content

Commit

Permalink
[EuiSuperSelect] Updated i18n default instructions string (#6549)
Browse files Browse the repository at this point in the history
* Updated i18n default string for EuiSuperSelect.
* Added CHANGELOG file.
* Update upcoming_changelogs/6549.md
* Co-authored-by: Cee Chen <[email protected]>
  • Loading branch information
1Copenut authored Jan 25, 2023
1 parent 0824615 commit 15cf5ee
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions i18ntokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -4241,7 +4241,7 @@
},
{
"token": "euiSuperSelect.screenReaderAnnouncement",
"defString": "You are in a form selector and must select a single option.\n Use the up and down keys to navigate or escape to close.",
"defString": "You are in a form selector and must select a single option.\n Use the Up and Down arrow keys to navigate or Escape to close.",
"highlighting": "string",
"loc": {
"start": {
Expand Down Expand Up @@ -6143,4 +6143,4 @@
},
"filepath": "src/components/tree_view/tree_view.tsx"
}
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ exports[`EuiSuperSelect props custom display is propagated to dropdown 1`] = `
class="emotion-euiScreenReaderOnly"
id="euiSuperSelect__generated-id__screenreaderDescribeId"
>
You are in a form selector and must select a single option. Use the up and down keys to navigate or escape to close.
You are in a form selector and must select a single option. Use the Up and Down arrow keys to navigate or Escape to close.
</p>
<div
aria-describedby="euiSuperSelect__generated-id__screenreaderDescribeId"
Expand Down Expand Up @@ -442,7 +442,7 @@ exports[`EuiSuperSelect props more props are propogated to each option 1`] = `
class="emotion-euiScreenReaderOnly"
id="euiSuperSelect__generated-id__screenreaderDescribeId"
>
You are in a form selector and must select a single option. Use the up and down keys to navigate or escape to close.
You are in a form selector and must select a single option. Use the Up and Down arrow keys to navigate or Escape to close.
</p>
<div
aria-activedescendant="1"
Expand Down Expand Up @@ -594,7 +594,7 @@ exports[`EuiSuperSelect props options are rendered when select is open 1`] = `
class="emotion-euiScreenReaderOnly"
id="euiSuperSelect__generated-id__screenreaderDescribeId"
>
You are in a form selector and must select a single option. Use the up and down keys to navigate or escape to close.
You are in a form selector and must select a single option. Use the Up and Down arrow keys to navigate or Escape to close.
</p>
<div
aria-describedby="euiSuperSelect__generated-id__screenreaderDescribeId"
Expand Down Expand Up @@ -745,7 +745,7 @@ exports[`EuiSuperSelect props renders popoverProps on the underlying EuiPopover
class="emotion-euiScreenReaderOnly"
id="euiSuperSelect__generated-id__screenreaderDescribeId"
>
You are in a form selector and must select a single option. Use the up and down keys to navigate or escape to close.
You are in a form selector and must select a single option. Use the Up and Down arrow keys to navigate or Escape to close.
</p>
<div
aria-activedescendant="2"
Expand Down
2 changes: 1 addition & 1 deletion src/components/form/super_select/super_select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ export class EuiSuperSelect<T extends string> extends Component<
<EuiI18n
token="euiSuperSelect.screenReaderAnnouncement"
default="You are in a form selector and must select a single option.
Use the up and down keys to navigate or escape to close."
Use the Up and Down arrow keys to navigate or Escape to close."
/>
</p>
</EuiScreenReaderOnly>
Expand Down
1 change: 1 addition & 0 deletions upcoming_changelogs/6549.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Updated `EuiSuperSelect` screen reader instructions to be more specific

0 comments on commit 15cf5ee

Please sign in to comment.