-
Notifications
You must be signed in to change notification settings - Fork 176
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
Make click on reposter's small avatar image go to reposter's account page #2260
Make click on reposter's small avatar image go to reposter's account page #2260
Conversation
…'s account page not the original poster
Love this proposal I've tried to click this myself, I have some blocking feedback related to accessibility that if we can resolve I think this'll be good to go. |
Thanks @NickColley. I've had a play with VoiceOver and I think this is right? |
Looks great, that aligns with how the main avatar works. Will let @nolanlawson give a final review thank you 👍 |
The question is why this link has to be duplicated anyway and then be removed from keyboard and screen reader users afterwards? Is there no better way to construct the markup that doesn't require this horrible hack? |
@MarcoZehe because the image is in a odd position relative to the link if we did it another way for example expanding the original links hit area we'd run into other issues I suspect so this is preferable. I've used this pattern many times and don't see it as a hack myself but always welcome to better solutions. |
Yeah that is the solution I already took for the avatar image in general. It's duplicated by the account name, so I considered it pointless to keep it in the tab order or to make it visible for screenreaders. I wrote about my thought process in this post (under "Subtleties with focus management"). The solution @NickColley suggests in #2260 (comment) seems to align with how I've currently handled things. |
Also FWIW looks like one of the tests is broken due to a selector changing. |
Thanks, I see the broken test in 010-focus.js |
Yeah running the tests locally is a beast! I need to learn how Docker works or something. I took a look, and there were two things:
This should fix the test; let's let CI figure it out ^ |
@nolanlawson great catch |
…count page (nolanlawson#2260) Co-authored-by: Nolan Lawson <nolan@nolanlawson.com>
This change makes clicking on the small sized avatar go to the account page for the reposter, previously small and large images both linked to the original poster's account page