-
Notifications
You must be signed in to change notification settings - Fork 508
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
CSS examples: tab behavior is weird #128
Comments
Agreed. I was planning on doing an accessibility review this week as part of the Prism exploration, and the fact that we are essentially waiting on feedback from Brigade before making any other UI changes. |
I have added the ability to move through the CSS examples using the cursor keys. With that, do you feel that we can close out this one? @wbamberg |
You can test it here for the time being: |
This looks very nice: up/down works great to cycle through the choices. But tab is weird: it does cycle through the options, but the "selection indicator" (the blue border and arrow) is not updated. |
Indeed. I noticed this yesterday as well while testing something else. I am going to fix that today, and will attach it to this bug. Once that is landed, I will go ahead and close out this issue. Thanks @wbamberg |
…tate-on-tab-focus Fix issue #128, fix tab order and state on CSS examples
Sorry to reopen, but I saw another problem with this: where an item has multiple lines (e.g. https://developer.allizom.org/en-US/docs/Web/CSS/background-color) and the cursor is at line 1, then you down-arrow, then the cursor moves to the next item. It should move to the next line, and only move to the next item if it is on the last line. |
Hmmm, yeah, that is a nasty one. I will look into it. |
@wbamberg Ok so, I have looked at this from a bunch of different angles but, there just seems to be no way to know that you are at the start, or the end of the text inside the Perhaps we should drop the up/down arrow functionality and just keep the tabbing. Thoughts? |
As much as I like the feature, I think it's more important that we allow and encourage people to edit the examples and that can mean adding a line, in which case keyboard navigation is not doing what most people would expect. I'd drop it for this first version. |
So, I do seem to be able to get a |
Ok. @wbamberg have made some general interaction improvements to the CSS editor specifically. I removed the up/down arrow interaction because it is driving me up the wall currently, and while I would like to have the functionality, it needs to work as expected to be valuable. Give this a spin and feel to reopen if you ruin into any problems. Thx |
I think this is fine :). I mean, we need keyboard access, but tab is totally sufficient IMO. |
If I load, say, https://developer.mozilla.org/en-US/docs/User:schalkneethling:transform and press Tab, the last item gets a dotted grey border, as if it's selected, and its Reset button appears.
If I press Tab after having selected a few different rows, then their Reset buttons appear: http://imgur.com/a/47YZm.
We should probably think about what we want Tab behavior to be. Ideally it feels like it should:
The text was updated successfully, but these errors were encountered: