-
Notifications
You must be signed in to change notification settings - Fork 216
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
Updated content link #2102
Updated content link #2102
Conversation
Size Change: -7.52 kB (-1%) Total Size: 832 kB
ℹ️ View Unchanged
|
1263c82
to
cb23096
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed that I can see the changes to the VContentLink
locally! (The term john de mark
gives me image results but not audio ones, for others who may want to test the non-disabling buttons).
cb23096
to
a3da08b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I notice the following visual errors:
- The large variant of component should be
72px
height - From
sm
and beyond the component should be large. Here are mockups for all breakpoints. - In small variant, space between media type and results labels should be
4px
- In hover and focus, results label changes from "dark charcoal 70" to "dark charcoal"
Regarding the aria-label script, I'm not sure about the "Try an external search source." sentence. The metasearch action is far from the navigation and, in my overall understanding, labels should aim to provide the same information to all users, and this content is not visually conveyed. I might be wrong in this last point
This makes a lot of sense, you're right. I'll remove that part of the sentence. |
4a9598b
to
43b2eae
Compare
38a03ae
to
dfbd2eb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dfbd2eb
to
023430b
Compare
We have removed the top padding (from the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks great 🚀
Fixes
Related to #2078 by @fcoveram
Fixes #2083 by @fcoveram
Description
This PR updates the
VContentLink
component to match the styles in the linked issue.Content link is always enabled, even if there are no results (as per #2083).
I also added the
aria-label
to the button to improve the screen reader experience. Currently, it lacks a period between "See all images" and "... results", so it's not easy to understand. The new labels for images are:There are similar labels for audio.
I am a bit worried that having two content links at the top might make screen reader users think that all of the results consist of these two links, and not try to navigate on to the mixed view.
Testing Instructions
Check that the content link on the All results view matches the mockups.
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin