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

Documentation hamburger button lacks visible focus indication #30420

Closed
patrickhlauke opened this issue Mar 19, 2020 · 6 comments
Closed

Documentation hamburger button lacks visible focus indication #30420

patrickhlauke opened this issue Mar 19, 2020 · 6 comments

Comments

@patrickhlauke
Copy link
Member

The hamburger menu button in v4 and upcoming v5 documentation on small screen lacks a visible focus indication (e.g. when navigating by keyboard)

v4 header with hamburger menu button

v4 header with hamburger menu button

incidentally, this would be the sort of thing that would ideally, in future, be tackled using :focus-visible (as you'd want some sort of focus outline, but ideally only when navigating with keyboard and not after clicking with mouse/tapping on touchscreen)

xref #30073 (comment)

@TorRydberg
Copy link

Hi @patrickhlauke, I have a fix for this. Can I commit my code?
Bootstrap

@ffoodd
Copy link
Member

ffoodd commented Apr 8, 2020

@TorRydberg please do 🙂

@MartijnCuppens
Copy link
Member

There seem to be an indication in v5 already: https://twbs-bootstrap.netlify.com/docs/4.3/getting-started/introduction/

image

@ffoodd
Copy link
Member

ffoodd commented Apr 9, 2020

Confirmed, coming from .btn:focus. And the related PR is using border, which moves the button around on focus…

Don't know what happened here, but I suggest to close both issue and PR. @patrickhlauke Could you check this again?

@MartijnCuppens
Copy link
Member

MartijnCuppens commented Apr 9, 2020

but I suggest to close both issue and PR

This is still an issue in v4

Edit: it's not. https://v4-dev--twbs-bootstrap.netlify.app/docs/4.4/getting-started/introduction/

This is fixed by restoring the outlines to .btn-links. I think we can safely remove the .btn-link classes from these buttons btw

@MartijnCuppens
Copy link
Member

Gonna close this, this was fixed by #30036. Opened #30542 to remove the redundant .btn-link class which has no effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants