Mark Otto closed merge request !38191: Docs: fix focus issue at Bootstrap / b...

Mark Otto
2023-03-10T17:19:59Z

Description

Remove tabindex="0" from the body. Make the scrollspy documentation evolve a bit.

Motivation & Context

Make the focus on a specific element of the doc hard.

Small check:

open the two previews below

select a word by double tapping

press Tab

The main branch leads to skip links wherever you selected the word. The preview leads to the next element.

As far as I can see, the body is still accessible from keyboard.

Type of changes

Bug fix (non-breaking change which fixes an issue)

New feature (non-breaking change which adds functionality)

Refactoring (non-breaking change)

Breaking change (fix or feature that would change existing functionality)

Checklist

I have read the contributing guidelines

My code follows the code style of the project (using npm run lint)

My change introduces changes to the documentation

I have updated the documentation accordingly

(NA) I have added tests to cover my changes

All new and existing tests passed

Live previews

https://deploy-preview-38191--twbs-bootstrap.netlify.app/docs

https://main--twbs-bootstrap.netlify.app/docs

Related issues

NA.