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 search result elements keyboard focusable #259
Conversation
c4dea4a
to
a28b756
Compare
I realized I'd only added this fix to |
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 did not tried it but I think the simplest solution would be to just add My understanding is that while there is an agreement that the issue should be addressed, the majority feels it should be addressed together with planed redesign and that it's not important to roll out quick-fix soon. But perhaps if enough people feel like this should be fixed ASAP we can discuss quick fix independent of a redesign. |
Did you try the changes out? I'm not sure what you mean by 'not correct' but this is definitely a valid solution to the issue. I agree that inline styles aren't the best practice - I cam move those. @samueldr mentioned in the issue I opened that an html tag should be used rather than |
My suggestion wrapped the first cell's content: (Here it's a button, but an The main drawback with wrapping only the first element with a link is that the "whole row" won't be selected by keyboard navigation, but that's not really an issue. |
It's indeed not correct semantically. It is correct in terms of display/render but there are other ways in which HTML/DOM structure can be incorrect which can lead to problems other than rendering in browser.
I've seen @samueldr 's comment I think he is right just for a different reason than that the bahaviour of I agree with both @garbas and @samueldr. However in my opinion the best quick fix route would be |
@samueldr actually regarding:
What if we would do exactly that and just remove the "only". We can keep both button as well as event handler on
|
To remove the "only", three scenarios:
But, uh, now that I look at your solution, what you implemented is what I had in mind, and I see the miscommunication. I didn't intend to make only the first cell clickable, I was only thinking about adding one focusable element per row. |
Closes #258
<tr/>
element with<a/>
<a/>
like<tr/>
This may not be a comprehensive fix, but it works well with Vimium.
If there are any style conventions I should follow please let me know!