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

[A11Y] Seven/Basis: secondary submit button text does not have enough contrast #5426

Open
klonos opened this issue Jan 1, 2022 · 5 comments · May be fixed by backdrop/backdrop#3885
Open

Comments

@klonos
Copy link
Member

klonos commented Jan 1, 2022

This is a sibling issue to #5425 and part of the #5244 meta.

Current style is:

  • Normal state: #828188 text color over #FFFFFF background, which is AA for large text, but fails for normal size text.
    • Making the text color #75747B would pass AA for both Seven/Basis (would make it AAA for large size text, and AA for normal size text).
    • Making it #57575C would pass AAA for both Seven/Basis, for both large and normal size text.
  • Hover/focus state: #FFFFFF text color over #97979E background, which fails AA for all text sizes.
    • Making the background color #757575 would pass AA for Seven/Basis (would make it AAA for large size text, and AA for normal size text).
    • Making it #595959 would pass AAA for Seven/Basis
@klonos
Copy link
Member Author

klonos commented Jan 1, 2022

PRs filed for both options to compare and choose from:

Screenshot that shows progressive change from current to AA to AAA in Seven:

...and in Basis:

PS: I have not changed the border (box-shadow) for these buttons, as I think it makes for a nice "bezel" effect. Happy to change that too, to match the button text or background color (depending on normal vs hover/focus state).

@klonos
Copy link
Member Author

klonos commented Jan 1, 2022

Although AAA is ideal, I believe that we don't want to draw attention to secondary buttons, so perhaps we can call AA "good enough" and choose that here.

Waiting for feedback by others re this one.

@indigoxela
Copy link
Member

Although AAA is ideal, I believe that we don't want to draw attention to secondary buttons

Agreed, for the same reason. Another vote for the AA approach for both, Seven and Basis.

@ghost
Copy link

ghost commented Jun 25, 2022

I also think AA is good enough. The AAA ones look too bold...

PR looks good to me.

@quicksketch
Copy link
Member

PS: I have not changed the border (box-shadow) for these buttons, as I think it makes for a nice "bezel" effect. Happy to change that too, to match the button text or background color (depending on normal vs hover/focus state).

I think we should change the border to match the background, as these buttons did not have a different color border before. I also find it weird that the secondary buttons would get a visible border while the primary button would not.

So while we agree going with AA is good enough, I think this needs an update to change the border to match.

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