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

Bug: Tab Navigation of forms lacks focus outline for certain inputs #6065

Open
thejonroberts opened this issue Oct 1, 2024 · 0 comments
Open
Labels
Help Wanted This is a special label that enables github to showcase issues that want help Type: Bug

Comments

@thejonroberts
Copy link
Contributor

thejonroberts commented Oct 1, 2024

Impacted User Types

  • all

Environment

ex: all

Current Behavior

When I tab through a form, the focus outline disappears for certain inputs. Notable in case contact form. Affects at least checkbox inputs.

This is annoying for me, who likes to use keyboard for things, but a huge problem for accessibility.

Expected Behavior

I expect to see an outline of where I currently am in the form so that I can tab navigate all the way through it.

How to Replicate

    • Log in as an volunteer.
    • Navigate to a Case
    • Click on Create New Contact.
    • Try to tab around the form.

How to access the QA site

Login Details:
Link to QA site

Login Emails:

password for all users: 12345678

The Problem:

public/assets/css/main.css

a:focus,
input:focus,
textarea:focus,
button:focus,
.btn:focus,
.btn.focus,
.btn:not(:disabled):not(.disabled).active,
.btn:not(:disabled):not(.disabled):active {
  text-decoration: none;
  outline: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none; }

In app/views/layouts/application.html.erb:

  <%= javascript_include_tag "application", "data-turbo-track": "reload", defer: true %>
  <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>

  <% if all_casa_admin_signed_in? %>
    <%= javascript_include_tag "all_casa_admin", "data-turbo-track": "reload", defer: true %>
  <% end %>

  <link rel="stylesheet" href="/assets/css/lineicons.css">
  <link rel="stylesheet" href="/assets/css/materialdesignicons.min.css">
  <link rel="stylesheet" href="/assets/css/main.css">
  • main.css is a mess & separate from CSS build process
    • does a lot of reset-type things, which bootstrap already does for us
    • included after application.css build, so overwrites anything in bootstrap, application scss (bc of cascade)
    • this includes removing focus styles like outline, which are necessary for tab navigation
    • it is also formatted poorly and has syntax errors
    • main.css does a lot - many rules to overwrite bootstrap classes, which could probably be done via configuration instead?

proposed solutions:

  1. Move main.css from application.html to application css bundle
    • remove anything in main.css that bootstrap reset takes care of, like focus styles
    • will increase bundle size
    • won't change any rules, still could be change in styles from cascade re-ordering
  2. Clean up main.css so that it doesn't contain focus reset rules.
    • also move it above stylesheet_link_tag in app layout?
  3. Remove main.css and configure bootstrap properly, fix issues that arise...
    • probably too much work
@thejonroberts thejonroberts added Help Wanted This is a special label that enables github to showcase issues that want help Type: Bug labels Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted This is a special label that enables github to showcase issues that want help Type: Bug
Projects
Development

No branches or pull requests

1 participant