-
Notifications
You must be signed in to change notification settings - Fork 394
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
accessibility: add focus state styles to interactive elements #1153
accessibility: add focus state styles to interactive elements #1153
Conversation
@nisarhassan12 CI failed, please check when you have time |
@nisarhassan12 can we highlight buttons with some "glow" effect around them? border might look find around links (sometimes), but buttons should have some nice effect. Check the Slack website that you shared - they have some nice effects for buttons. |
Thanks! @shcheklein hopefully I will try to fix the CI and adding the glow effect to the buttons tomorrow. |
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.
Also, and not withing the scope of this PR, but navigating with tab seems to be using hidden elements (probably responsive stuff?) because from [Get Started] to [Download] there's like 15 jumps. |
Thanks, @jorgeorpinel. yeah, there is the hamburger menu and the links( this is mentioned in #1153). I will make a separate PR for that. |
About the CI failure maybe it's just me but I think code climate is maybe too strict here depending on what we are trying to do here. indeed the code blocks are similar but they are doing the opposite of each other. @shcheklein do you have any ideas on how one can go about refactoring this. I can split the 2 lines that are responsible for adding/removing event listeners by splitting them into a separate module exported from a different file that both functions can use but that is too much in my opinion i.e they are already function calls with different arguments. What do you say 🙂? |
@nisarhassan12 yeah, no need to solve all code climate warning! I was talking about CircleCi. |
It also does not highlight docs sidebar properly. |
@shcheklein I tried this I was using a similar approach but it would cause Circle CI to fail because of the way the event handlers work, splitting them into different files was kind of a workaround so that Circle CI does not fail: Should I do this anyway even if Circle CI fails? |
@nisarhassan12 I see. splitting into two files probably not a good solution - I would explore if there is a better way to do this |
Thanks, I also noticed a few other places where it does not highlight properly I will update the Pr soon and also add some other effect to the buttons other than the outline. |
I have made the changes. @shcheklein please have a look whenever you'll have time. |
I asked to remove dashed board from buttons, it think it looks nice that button just have different glow/highlight - looks like enough visually. |
…o don't use keyboards.
thanks @nisarhassan12 ! cool stuff. |
This Pr addresses the following from #1149
This is how it looks with the changes in place.
The dotted outline does not look pretty and provides no benefits to users that are using a mouse. So I have made sure that: