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 docs search to homepage #38850

Merged
merged 2 commits into from
Jul 6, 2023
Merged

Conversation

MewenLeHo
Copy link
Contributor

@MewenLeHo MewenLeHo commented Jun 29, 2023

Description

Make the search form available on all pages.

Motivation & Context

Repeated components must be at the same place on each page of the site in order to allow users to predict where they can find things on each page. This helps users with cognitive limitations, users with low vision, users with intellectual disabilities, and also those who are blind (according to Criterion 3.2.3 Consistent Navigation, see below).

That's why the search field must be at the same place on every page in a site so users can quickly locate the search function.

Compliance to Success Criterion 3.2.3 Consistent Navigation (Level AA):
Navigational mechanisms that are repeated on multiple Web pages within a set of Web pages occur in the same relative order each time they are repeated, unless a change is initiated by the user.

https://www.w3.org/WAI/WCAG21/Understanding/consistent-navigation.html

Type of changes

  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the contributing guidelines
  • My code follows the code style of the project (using npm run lint)
  • (na) My change introduces changes to the documentation
  • (na) I have updated the documentation accordingly
  • (na) I have added tests to cover my changes
  • All new and existing tests passed

Live previews

@mdo
Copy link
Member

mdo commented Jul 6, 2023

I've personally wanted this a few times as well, so I dig.

@mdo mdo changed the title Make Bootstrap navigation consistent Add docs search to homepage Jul 6, 2023
@mdo mdo merged commit 4315801 into twbs:main Jul 6, 2023
romankupchak93 pushed a commit to romankupchak93/bootstrap that referenced this pull request Jan 5, 2024
* Compliance to Success Criterion 3.2.3 Consistent Navigation

* Update docs-navbar.html

---------

Co-authored-by: Mark Otto <markdotto@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants