Skip to content

add <label> tag for API Reference page #1560

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

Merged
merged 6 commits into from
Feb 28, 2022
Merged

add <label> tag for API Reference page #1560

merged 6 commits into from
Feb 28, 2022

Conversation

milos018
Copy link
Contributor

Description of Problem

The current API reference page has no tag for the filter input, which is important for A11y issues.

Proposed Solution

Inserted the tag along with some CSS changes.
Wording "Filter" and "Enter keyword" may be changed for something better.

Additional Information

My first PR (ever), please be gentle :)

@netlify
Copy link

netlify bot commented Feb 17, 2022

✔️ Deploy Preview for vuejs ready!

🔨 Explore the source changes: a73e169

🔍 Inspect the deploy log: https://app.netlify.com/sites/vuejs/deploys/621a3f53a568cd0008b16f63

😎 Browse the preview: https://deploy-preview-1560--vuejs.netlify.app

Copy link
Contributor

@skirtles-code skirtles-code left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

I think it might need a bit of tweaking for narrower viewport widths. There's a media query for that header, switching it from horizontal to vertical stacking when the viewport goes below 768px. I feel like the label and input should probably be left aligned and stacked vertically below that width.

What do you think?

@milos018
Copy link
Contributor Author

Thanks for the comment. I believe this is fixed now. Happy to make any other changes if needed.

@@ -204,6 +226,10 @@ h3 {
.header {
display: block;
}

.api-filter {
justify-content: flex-start;
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm wondering whether we could replace the justify-content: space-between in the earlier rule with flex-start? From what I can tell it would look exactly the same, but without needing this extra tweak in the media query?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, you are right. Will fix it. One more idea - is it OK to change the input type to "search" (instead of default "text) as we get the "x" (to cancel search) for free?

Copy link
Contributor

@skirtles-code skirtles-code 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!

Thanks.

@skirtles-code skirtles-code merged commit 22d80c1 into vuejs:main Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants