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

focus outline can appear around elements when hovering, even outside of keyboard modality #7974

Closed
jonboiser opened this issue Apr 7, 2021 · 5 comments · Fixed by learningequality/kolibri-design-system#227
Assignees
Labels
bug Behavior is wrong or broken P0 - critical Priority: Release blocker or regression TAG: a11y Affecting accessibility TAG: design system Change to our style guide / design system
Milestone

Comments

@jonboiser
Copy link
Contributor

jonboiser commented Apr 7, 2021

Observed behavior

These are some screenshots I made browsing https://kolibri-dev.learningequality.org, which is using kolibri-design-system 0.2.2b1.

These screenshots were created while using the mouse exclusively (i.e. never entering into keyboard modality, at least intentionally by tabbing into elements).

On video player (hovering)

CleanShot 2021-04-07 at 12 09 52

Learn search bar

CleanShot 2021-04-07 at 12 09 31

Under top nav while side nav is open
CleanShot 2021-04-07 at 12 06 22

Core menu while hovering

CleanShot 2021-04-07 at 12 05 27

Expected behavior

In all of these screenshots, there should not be any outline

Steps to reproduce

Go to the various parts of the app in Chrome and you will see the outline when hovering with mouse (or sometimes without having to hover)

Context

@jonboiser jonboiser added TAG: design system Change to our style guide / design system P0 - critical Priority: Release blocker or regression labels Apr 7, 2021
@jonboiser jonboiser added this to the 0.15.0 milestone Apr 7, 2021
@jonboiser jonboiser added the bug Behavior is wrong or broken label Apr 7, 2021
@radinamatic radinamatic added the TAG: a11y Affecting accessibility label Apr 8, 2021
@Priyaraj17
Copy link
Contributor

Hey, We just need to add 'outline: none' in the css files. I will get started ASAP.

@jonboiser
Copy link
Contributor Author

jonboiser commented Apr 8, 2021

Hey, We just need to add 'outline: none' in the css files. I will get started ASAP.

@Priyaraj17 I don't think the solution is simple as that. We want the green outline to show when using the keyboard "tab" button to navigate the UI. Try navigating Kolibri right now with just the keyboard to see what I mean.

So any change to the CSS that will remove that is unacceptable (i.e. setting outline: none globally).

@Priyaraj17
Copy link
Contributor

@jonboiser I was working on 2 issues simultaneously. I have solved the issues here. Shall I reference a pull request that I have made while solving a different issue? I believe it will resolve this issue too.

@Priyaraj17
Copy link
Contributor

Hey, We just need to add 'outline: none' in the css files. I will get started ASAP.

@Priyaraj17 I don't think the solution is simple as that. We want the green outline to show when using the keyboard "tab" button to navigate the UI. Try navigating Kolibri right now with just the keyboard to see what I mean.

So any change to the CSS that will remove that is unacceptable (i.e. setting outline: none globally).

I think we can use tabindex = -1 for this. I have attached a screenshot too
I am hovering on the menu and the outline is not showing.
image

@Priyaraj17
Copy link
Contributor

Priyaraj17 commented Apr 20, 2021

Will this work? @jonboiser @rtibbles

Hey, We just need to add 'outline: none' in the css files. I will get started ASAP.

@Priyaraj17 I don't think the solution is simple as that. We want the green outline to show when using the keyboard "tab" button to navigate the UI. Try navigating Kolibri right now with just the keyboard to see what I mean.
So any change to the CSS that will remove that is unacceptable (i.e. setting outline: none globally).

I think we can use tabindex = -1 for this. I have attached a screenshot too
I am hovering on the menu and the outline is not showing.
image

Will this work @rtibbles @jonboiser?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Behavior is wrong or broken P0 - critical Priority: Release blocker or regression TAG: a11y Affecting accessibility TAG: design system Change to our style guide / design system
Projects
None yet
4 participants