Skip to content

[EuiSuperSelect][COGNITION]: Edit the euiSuperSelect.screenReaderAnnouncement I18n token for consistency in language #5363

Closed

Description

@1Copenut

Description:
The euiSuperSelect.screenReaderAnnouncement token describes the Up and Down arrow keys as "up and down keys". I'd like to improve this and change the translation text to "Up and Down arrow keys" for consistency with other translations and to make the implicit (arrow) explicit. We should also capitalize Escape.

Guidance:
https://www.w3.org/WAI/WCAG21/Understanding/labels-or-instructions.html

!  i18ntokens.json#2258

{
  "token": "euiSuperSelect.screenReaderAnnouncement",
- "defString": "You are in a form selector of {optionsCount} items 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 of {optionsCount} items and must select a single option.\n
+   Use the Up and Down arrow keys to navigate or Escape to close.",
  "highlighting": "string",
  "loc": {
    "start": {
      "line": 353,
      "column": 12
    },
    "end": {
      "line": 358,
      "column": 14
    }
  },
  "filepath": "src/components/form/super_select/super_select.tsx"
},
! super_select.tsx#357

<EuiScreenReaderOnly>
  <p id={this.describedById}>
    <EuiI18n
      token="euiSuperSelect.screenReaderAnnouncement"
-     default="You are in a form selector of {optionsCount} items and must select a single option.
-       Use the up and down keys to navigate or escape to close."
+     default="You are in a form selector of {optionsCount} items and must select a single option.
+       Use the Up and Down arrow keys to navigate or Escape to close."
      values={{ optionsCount: options.length }}
    />
  </p>
</EuiScreenReaderOnly>

Activity

  1. changed the title [-][COGNITION]: Edit the `euiSuperSelect.screenReaderAnnouncement` I18n token for consistency in language[/-] [+][EuiSuperSelect][COGNITION]: Edit the `euiSuperSelect.screenReaderAnnouncement` I18n token for consistency in language[/+] on Nov 9, 2021
  2. github-actions commented on May 9, 2022

    @github-actions

    👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

  3. added
    stale-issue
    on May 9, 2022
  4. removed
    stale-issue
    on May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions