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(ScreenReaderOnly): Fix ScreenReaderOnly positioning to avoid scrolling issues #942

Merged
merged 3 commits into from
Nov 16, 2023

Conversation

pladaria
Copy link
Member

@pladaria pladaria commented Nov 14, 2023

Before (note the extra scrollbar):
image

After (fixed):
image

Copy link

Size stats

master this branch diff
Total JS 9.58 MB 9.58 MB 0 B
JS without icons 1.02 MB 1.02 MB 0 B
Lib overhead 126 kB 126 kB 0 B
Lib overhead (gzip) 32.1 kB 32.1 kB 0 B

Copy link

github-actions bot commented Nov 14, 2023

Accessibility report
✔️ No issues found

ℹ️ You can run this locally by executing yarn audit-accessibility.

@pladaria pladaria marked this pull request as ready for review November 14, 2023 15:58
Copy link

github-actions bot commented Nov 14, 2023

Deploy preview for mistica-web ready!

✅ Preview
https://mistica-1sxd5822j-tuentisre.vercel.app

Built with commit ec771ca.
This pull request is being automatically deployed with vercel-action

@@ -14,5 +14,8 @@ export const screenReaderOnly = style([
height: 1,
clip: 'rect(0, 0, 0, 0)',
userSelect: 'none',
// move the element out of the screen to avoid scrolling issues. See https://github.com/Telefonica/mistica-web/pull/942
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

@pladaria pladaria Nov 16, 2023

Choose a reason for hiding this comment

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

@pladaria pladaria added this pull request to the merge queue Nov 16, 2023
Merged via the queue into master with commit f6537e9 Nov 16, 2023
@pladaria pladaria deleted the pladaria/WEB-1581_fix-ScreenReaderOnly-styles branch November 16, 2023 15:13
tuentisre pushed a commit that referenced this pull request Nov 16, 2023
# [14.32.0](v14.31.1...v14.32.0) (2023-11-16)

### Bug Fixes

* **ScreenReaderOnly:** Fix ScreenReaderOnly positioning to avoid scrolling issues ([#942](#942)) ([f6537e9](f6537e9))

### Features

* **AdvancedDataCard:** support for href/to ([#859](#859)) ([ba5eafb](ba5eafb))
@tuentisre
Copy link
Collaborator

🎉 This PR is included in version 14.32.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-merge-queue bot pushed a commit that referenced this pull request Oct 23, 2024
https://jira.tid.es/browse/WEB-2061
By default, the browser will read text content inside rows one by one
(title, description, etc).
With the changes in this PR, if an aria-label is provided to the
informative row, the whole row will be read as a single text (the one
provided in the aria-label prop)

This PR also fixes https://jira.tid.es/browse/WEB-1885 which is a
basically revert of #942.
As part of this PR we allow passing custom styles (via `className` prop)
to `ScreenReaderOnly` to workaround possible style issues found (like
the one described originally in
#942).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants