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 "jump to" links for keyboard accessibility #96

Merged
merged 2 commits into from
Nov 5, 2021
Merged

Conversation

Kenny2github
Copy link
Member

@Kenny2github Kenny2github commented Oct 22, 2021

See first commit message for details. Checkout this branch and hit Tab to see it in action.

ScratchWikiSkinTemplate.php:
+ Jump to sidebar link to logo
+ Jump to content link to first heading
* Have ID for wikilogo
* Escape box header aria label for sidebar, oops...
* Search glass can no longer be tabbed to

resources/css/main.css:
* Make all header links white
+ Hide "jump to" links but allow them to be tabbed to

i18n/*.json:
+ See qqq

Dishonorable mentions:
- Remove the following line from ScratchWikiSkinTemplate.php:
  <span class="help-block">Not Required</span>
  This has been here since the initial commit and been completely
  useless and done absolutely nothing for all 4 years of its life.
  We do not thank you for your lack of service.
- Remove the following lines from resources/css/main.css:
  #navigation .inner>ul>li.search .row .help-block {
      display: none;
  }
  This has been here since the initial commit and survived the move of
  non media-query styling into a new file. It has ensured the complete
  uselessness of the <span class="help-block"> mentioned above for all
  4 years of its life. Together, they are an even more useless whole.
  We do not thank you for your service.
@Kenny2github Kenny2github added enhancement New feature or request prnr Pull request, needs review design Related to the skin design labels Oct 22, 2021
@Kenny2github Kenny2github added accessibility Related to accessibility of the skin and removed design Related to the skin design labels Oct 30, 2021
Copy link
Member

@jacob-g jacob-g left a comment

Choose a reason for hiding this comment

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

Looks good other than my one comment about background.

resources/css/main.css Show resolved Hide resolved
ScratchWikiSkinTemplate.php:
* Make links into regular navigation links, just ones that are hidden
  until they are tabbed to
  * This means that when focused, they actually offset the rest of the
    navbar to the right a bit, which is fine because it becomes normal
    once tabbed away

resources/css/main.css:
- When tabbed to, the links should no longer be position: absolute
@Kenny2github
Copy link
Member Author

The links now look like this when tabbed to - hopefully it's better this way:
Links to the side

@jacob-g jacob-g merged commit 09a3736 into master Nov 5, 2021
@jacob-g jacob-g deleted the jump-to-content branch November 5, 2021 01:01
@Kenny2github Kenny2github added prgtm Pull request, good to merge and removed prnr Pull request, needs review labels Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Related to accessibility of the skin enhancement New feature or request prgtm Pull request, good to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants