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

Main content section disappears on skip link activation #711

Open
petermakowski opened this issue Feb 25, 2022 · 3 comments
Open

Main content section disappears on skip link activation #711

petermakowski opened this issue Feb 25, 2022 · 3 comments

Comments

@petermakowski
Copy link
Contributor

petermakowski commented Feb 25, 2022

Summary

Main content section disappears on skip link activation.

This happens because we're using a simple :target technique to toggle visibility of sections. Skip link's target #main-content doesn't match any of the sections therefore all of them are hidden.

Process

  1. Visit https://maas.io/tutorials/build-a-maas-and-lxd-environment-in-30-minutes-with-multipass-on-ubuntu
  2. Press tab to activate the skip link
  3. Press enter to skip to the main section

Current

Main content section disappears

Expected

Main content section remains visible

Screenshot

Kapture 2022-02-25 at 09 33 02

@sparkiegeek
Copy link
Contributor

What browser, what OS? Doesn't do this for me on Firefox 97.0.1/Ubuntu

@anthonydillon
Copy link
Contributor

This is an issue with using the hash to render the correct section content. Although we should be auto appending a hash (in this case (#1-overview) which switches focus to the main content. You can replicate this issue but reverse tabbing (shift + tab) all the way back up to the skip link.

@sparkiegeek
Copy link
Contributor

What browser, what OS? Doesn't do this for me on Firefox 97.0.1/Ubuntu

Confirm if I press Tab enough times to get to the Skip link then it can mess up the hash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants