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

Add position: absolute to .vh #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tsmd
Copy link

@tsmd tsmd commented Aug 28, 2024

It seems that the .vh class, which is used to visually hide content while still being accessible to assistive technologies, also requires a position: absolute style declaration.

If it is not positioned absolutely, the 1px square box will continue to remain, and the style will be unintentionally broken.

Scott O'Hara's “Inclusively Hidden” also includes position: absolute.
https://www.scottohara.me/blog/2017/04/14/inclusively-hidden.html

I've prepared an example to show the contrast.
https://codepen.io/tsmd/pen/VwJBrGa?editors=1100

Copy link

netlify bot commented Aug 28, 2024

Deploy Preview for hypermedia-systems ready!

Name Link
🔨 Latest commit 178a145
🔍 Latest deploy log https://app.netlify.com/sites/hypermedia-systems/deploys/66cfb1778538770008b3e4c3
😎 Deploy Preview https://deploy-preview-15--hypermedia-systems.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Aug 28, 2024

Deploy Preview for magenta-kringle-251500 ready!

Name Link
🔨 Latest commit 178a145
🔍 Latest deploy log https://app.netlify.com/sites/magenta-kringle-251500/deploys/66cfb177c0294a000803347a
😎 Deploy Preview https://deploy-preview-15--magenta-kringle-251500.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

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.

1 participant