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

Change nicks from links to spans everywhere #428

Merged
merged 2 commits into from Jun 25, 2016
Merged

Change nicks from links to spans everywhere #428

merged 2 commits into from Jun 25, 2016

Conversation

xPaw
Copy link
Member

@xPaw xPaw commented Jun 22, 2016

Fixes #338

This removes the dumb "#" hover link previews.

@xPaw xPaw added the Type: Feature Tickets that describe a desired feature or PRs that add them to the project. label Jun 22, 2016
@xPaw xPaw added this to the 2.0.0 milestone Jun 22, 2016
@astorije astorije self-assigned this Jun 23, 2016
@maxpoulin64
Copy link
Member

👍

This fixes the search after changing from buttons to spans.
@astorije
Copy link
Member

@xPaw, I found a bug with the user search not working anymore, fixed in a commit, hope you don't mind!

One sad side-effect of going from links to spans is that we lose ability to tab and receive focus. @cptvitamin gave us some pointers to solve this at #338 (comment). @cptvitamin, feel free to jump in if you want to add anything to the discussion here :-)

@xPaw
Copy link
Member Author

xPaw commented Jun 24, 2016

@astorije Good fix.

I know I didn't set tabindex, is it that desired of a feature to tab index all the nicks in chat window?

@@ -1,2 +1,2 @@
<a href="#" class="user {{colorClass from}}" data-name="{{from}}">{{mode}}{{from}}</a>
<span role="button" class="user {{colorClass from}}" data-name="{{from}}">{{mode}}{{from}}</span>

Choose a reason for hiding this comment

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

to be accessible these will need a tabindex=0 and keyboard event listeners (Space and Enter) to work.

@xPaw
Copy link
Member Author

xPaw commented Jun 24, 2016

@cptvitamin see my comment above, I'm well aware of tabindex. The question is, do we want to make nicks tabbable in chat? Currently if you're focused in the input you can't tab out, and to tab in the chat window you have to select some text first so that you won't be focused in the input again.

@astorije
Copy link
Member

Follow-up of a discussion on the IRC channel (redacted for simplicity):

10:11 <xPaw>        astorije, Max-P, do we *want* to make nicks tabbable? currently if you're focused in the input you can't tab out, and to tab in the chat window you have to select some text first so that you're not being focused in the input again
11:12 <astorije>    xPaw, re: can't tab out of the input, that is definitely an accessibility issue. re: make nicks tabbable, it looks like not doing so makes things even worse for accessibility
11:13 <YaManicKill> We could make it that if you tab without any characters typed, it tabs out of the input? Is that possible?
11:13 <xPaw>        astorije, hexchat for example doesn't do any tabbing on nicks in chat, in user list it allows using arrow keys
11:18 <xPaw>        currently tabbing doesn't work on server list in lounge, we have to decide what and how we want to support keyboard stuff, instead of blindly adding tabindex=0 on everything
11:20 <xPaw>        I'm not sure how making every nick in chat tabbable is useful (userlist is limited usefulness)
11:20 <xPaw>        clicking a nick does a whois, you might as well type the commmand
11:26 <astorije>    It might not be useful for everyone, but it might be very useful for someone who can't read the usernames :/
15:52 <Max-P>       astorije: the nicks just do a /whois, can't the user just type it in anyway? If I were blind, I'd much prefer to use IRC in a command and reply way
15:52 <xPaw>        I'm seeing limited use in tabbing over nicks in chat, tabbing on links on other hand *is* useful
15:53 <xPaw>        if shift+tab focused on last link in chat, that'd be nice

@xPaw raised a good point that tabbing the message window has little value. It's actually the opposite, it clouds tabbing across links given in messages. So I agree that making nicks non-tabbable will make for a better experience.

Nicks should however be tabbable in the user list. It's the case at the moment, but it's rather broken as you have no visual feedback at all. It works fairly well with VoiceOver though.

However, these statements assume that it is possible to leave the input field once it is focused, which is not the case (and even so, it's not easy to access things like the channel list or user list)...

So I am 👍 here even though the user list is losing in keyboard-control, but that's only because it's not possible to access that area from the keyboard. @cptvitamin, any suggestions to make the different areas of the app themselves accessible from the keyboard are welcome!

@astorije astorije merged commit c29e0f9 into master Jun 25, 2016
@astorije astorije deleted the xpaw/span branch June 25, 2016 04:09
matburnham pushed a commit to matburnham/lounge that referenced this pull request Sep 6, 2017
Change nicks from links to spans everywhere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Tickets that describe a desired feature or PRs that add them to the project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants