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

Enhance browser search experience #2621

Merged
merged 3 commits into from
Apr 22, 2021
Merged

Conversation

CaptainIRS
Copy link
Contributor

The primary cause of the unpleasant browser search experience was the order in which sidebars were placed in the DOM, which would make results from the left sidebar to precede those from the main content while using any browser's search functionality.

It is fixed by reordering the sidebars in the DOM while preserving the visual order using flex order as suggested by @mleonhard in #2131 (comment).

As a bonus this also fixes an a11y issue where screen readers would first read out contents of the sidebar instead of the main content as they also rely on the DOM order.

Related Issues:

Fixes #2131
Fixes flutter/flutter#80849

@google-cla google-cla bot added the cla: yes Google CLA check succeeded. label Apr 22, 2021
@coveralls
Copy link

Coverage Status

Coverage remained the same at 58.859% when pulling d280cfd on CaptainIRS:find-fix into 6efbf78 on dart-lang:master.

Copy link
Contributor

@jcollins-g jcollins-g left a comment

Choose a reason for hiding this comment

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

Nice!

@jcollins-g jcollins-g merged commit 819b1c4 into dart-lang:master Apr 22, 2021
@jcollins-g
Copy link
Contributor

this will ship in the next dartdoc publish, which I plan to do next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support CTRL-F Searching in Docs Pages It's difficult to find content using normal browser find
3 participants