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

Improve accessibility of focus state #340

Merged
merged 10 commits into from
Jun 27, 2024

Conversation

arinchoi03
Copy link
Contributor

@arinchoi03 arinchoi03 commented Jun 20, 2024

  1. add $color-gold to be our new focus outline color (and add offset) for:
    a. text input
    b. textarea
    c. buttons
    d. radio buttons
    e. checkboxes
    f. select
    g. reveal
    h. link (WITHOUT OFFSET)
  2. accordion: currently tabbing into them create a blue focus outline around the text. Will need some workaround
  3. linked images are tabbable because they're inherently a elements (links). We need offset for linked images only. I see examples of linked images on the homepage that have the illustration class, so I'll be adding the offset there. For illustrations that do not get focus, this css change will have no impact.
  • code reviewed
  • design reviewed

@arinchoi03 arinchoi03 force-pushed the GCF-271-improve-accessibility-of-focus-state branch from 7fbf123 to 5181c29 Compare June 20, 2024 21:30
… upload/checkbox/radio/select & update outline color generally
@arinchoi03 arinchoi03 force-pushed the GCF-271-improve-accessibility-of-focus-state branch from 5181c29 to d69d31f Compare June 20, 2024 21:34
display: inline-block;
width: 48px;
height: 48px;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding an example of linked image since we didn't have an example of that usage in honeycrisp.

@@ -44,6 +46,7 @@
.accordion__content {
margin-top: $s35;
display: block;
padding: 0 $s15 $s15 $s15;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can talk through these changes if necessary

@@ -67,7 +63,7 @@ label {
background-color: $color-white;
border: 2px solid $color-grey-darkest;
input[type='radio'] {
@include outline;
@include outline-with-offset;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move this up & fix indentation

@arinchoi03 arinchoi03 merged commit 3dca26e into main Jun 27, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant