Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Additional word is being announced by screen reader for the external links #8065

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

alexwizp
Copy link
Contributor

@alexwizp alexwizp commented Oct 8, 2024

Closes: #8063

Description

Links should be announced clearly for screen reader users using the visible text on the page. Adding extra words or descriptions can create confusion for users relying on assistive technologies.

Changes Made:

  1. EuiExternalLinkIcon Component: Added role="presentation" to the external icon, ensuring it is ignored by screen readers.
  2. EuiExternalLinkIcon Component: Updated the screen reader-only text to properly handle both cases—external links and links that open in a new tab (_blank).

Screens:

External === false && Blank === false

image

Blank === true

image

External === true

image

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

@alexwizp alexwizp marked this pull request as ready for review October 8, 2024 09:13
@alexwizp alexwizp requested a review from a team as a code owner October 8, 2024 09:13
Copy link
Contributor

@mgadewoll mgadewoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 🐈‍⬛ Thanks @alexwizp for this improvement!
I tested it against current prod in JAWS and NVDA on Windows and the output is much clearer 👍

@alexwizp
Copy link
Contributor Author

alexwizp commented Oct 8, 2024

@mgadewoll please help me with merging, cannot do it myself

@mgadewoll mgadewoll merged commit d29a949 into elastic:main Oct 8, 2024
6 checks passed
delanni pushed a commit to elastic/kibana that referenced this pull request Oct 14, 2024
`v96.1.0`⏩`v97.0.0`

_[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_

---

## [`v97.0.0`](https://github.com/elastic/eui/releases/v97.0.0)

**Breaking changes**

- EuiDataGrid's custom grid body (rendered via `renderCustomGridBody`)
no longer automatically renders the column header row or footer rows. It
instead now passes the `headerRow` and `footerRow` React elements, which
require manual rendering.
([#8028](elastic/eui#8028))
- This change was made to allow consumers to sync header/footer rows
with their own custom virtualization libraries.
- To facilitate this, a `gridWidth` prop is now also passed to custom
grid body renderers.

**Bug fixes**

- Fixed inputs not taking the whole width when passing `fullWidth` as
`true` to EuiDatePickerRange component
([#8061](elastic/eui#8061))

**Accessibility**

- Improved accessibility of `EuiExternalLinkIcon` by clarifying text for
Screen Reader users. ([#8065](elastic/eui#8065))

---------

Co-authored-by: Elastic Machine <[email protected]>
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 14, 2024
`v96.1.0`⏩`v97.0.0`

_[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_

---

## [`v97.0.0`](https://github.com/elastic/eui/releases/v97.0.0)

**Breaking changes**

- EuiDataGrid's custom grid body (rendered via `renderCustomGridBody`)
no longer automatically renders the column header row or footer rows. It
instead now passes the `headerRow` and `footerRow` React elements, which
require manual rendering.
([elastic#8028](elastic/eui#8028))
- This change was made to allow consumers to sync header/footer rows
with their own custom virtualization libraries.
- To facilitate this, a `gridWidth` prop is now also passed to custom
grid body renderers.

**Bug fixes**

- Fixed inputs not taking the whole width when passing `fullWidth` as
`true` to EuiDatePickerRange component
([elastic#8061](elastic/eui#8061))

**Accessibility**

- Improved accessibility of `EuiExternalLinkIcon` by clarifying text for
Screen Reader users. ([elastic#8065](elastic/eui#8065))

---------

Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit cd60c66)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Additional word is being announced by screen reader for the external links
3 participants