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

Accessibility focus-visible default halo #183

Merged
merged 6 commits into from
Mar 5, 2024
Merged

Conversation

blackfalcon
Copy link
Member

@blackfalcon blackfalcon commented Jan 10, 2024

Alaska Airlines Pull Request

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Resolves: #182

Summary:

Please summarize the scope of the changes you have submitted, what the intent of the work is and anything that describes the before/after state of the project.

This PR adds a new focus-visible feature to WCSS. At the same time,
the legacy focus-visible solution has been deprecated.

The use of the Sass variable to change output was not well adopted.

In order NOT to force this update into all UI scenarios as there may be
local code to address this in some cases, this feature has been added as
an OPT-IN feature.

See inline documentation for info related to update and install
instructions.

Changes to be committed:
modified: README.md
modified: src/_core.scss
new file: src/_focus-visible.scss
new file: src/bundled/essentials+fv.scss
modified: src/elementDemoStyles/elementDemoStyles.scss

See demo: https://auro-a11y-tab-fix.surge.sh/

Screen Shot 2024-02-28 at 6 38 17 PM

Type of change:

Please delete options that are not relevant.

  • New capability
  • Revision of an existing capability
  • Infrastructure change (automation, etc.)
  • Other (please elaborate)

Checklist:

  • My update follows the CONTRIBUTING guidelines of this project
  • I have performed a self-review of my own update

By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.

Thank you for your submission!

-- Auro Design System Team

@blackfalcon blackfalcon requested a review from leeejune January 10, 2024 17:14
@blackfalcon blackfalcon linked an issue Jan 10, 2024 that may be closed by this pull request
@leeejune
Copy link
Contributor

leeejune commented Feb 7, 2024

@blackfalcon Would this work?

border: solid 1px var(--ds-color-border-active-default);
border-radius: var(--ds-border-radius);

@blackfalcon
Copy link
Member Author

@leeejune

I am recommending that we DO NOT use border-radius. In many cases this halo tightly surrounds some content and with rounded corners, it is too close to the content.

Screen Shot 2024-02-08 at 4 34 21 PM Screen Shot 2024-02-08 at 4 38 26 PM

@blackfalcon blackfalcon force-pushed the dsande/focus branch 2 times, most recently from 05d732f to 10988d7 Compare February 9, 2024 00:47
@leeejune
Copy link
Contributor

@leeejune

I am recommending that we DO NOT use border-radius. In many cases this halo tightly surrounds some content and with rounded corners, it is too close to the content.

@blackfalcon Sure, then the blue border should work.

blackfalcon added a commit that referenced this pull request Feb 29, 2024
This commit adds a new focus-visible feature to WCSS. At the same time,
the legacy focus-visible solution has been deprecated.

The use of the Sass variable to change output was not well adopted.

In order NOT to force this update into all UI scenarios as there may be
local code to address this in some cases, this feature has been added as
an OPT-IN feature.

See inline documentation for info related to update and install
instructions.

Changes to be committed:
modified:   README.md
modified:   src/_core.scss
new file:   src/_focus-visible.scss
new file:   src/bundled/essentials+fv.scss
This commit adds a new focus-visible feature to WCSS. At the same time,
the legacy focus-visible solution has been deprecated.

The use of the Sass variable to change output was not well adopted.

In order NOT to force this update into all UI scenarios as there may be
local code to address this in some cases, this feature has been added as
an OPT-IN feature.

See inline documentation for info related to update and install
instructions.

Changes to be committed:
modified:   README.md
modified:   src/_core.scss
new file:   src/_focus-visible.scss
new file:   src/bundled/essentials+fv.scss
modified:   src/elementDemoStyles/elementDemoStyles.scss
Changes to be committed:
modified:   tests/styleTest.scss
Changes to be committed:
modified:   package.json
Changes to be committed:
modified:   docs/index.html
@blackfalcon blackfalcon changed the title Fix accessibility focus-visible default halo Accessibility focus-visible default halo Feb 29, 2024
@blackfalcon blackfalcon marked this pull request as ready for review February 29, 2024 02:45
@blackfalcon blackfalcon requested a review from a team as a code owner February 29, 2024 02:45
@blackfalcon blackfalcon self-assigned this Feb 29, 2024
leeejune
leeejune previously approved these changes Feb 29, 2024
Changes to be committed:
modified:   package-lock.json
modified:   package.json
Changes to be committed:
modified:   README.md
Comment on lines -107 to -108

WCSS fully supports idiomatic CSS, be sure to review the [auro docs site](https://auro.alaskaair.com/webcorestylesheets/idiomatic-css) for more information.
Copy link
Member

Choose a reason for hiding this comment

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

Does that mean this needs to be removed?

https://auro.alaskaair.com/css/idiomatic-css

Copy link
Member Author

@blackfalcon blackfalcon Mar 4, 2024

Choose a reason for hiding this comment

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

Moved the conversation about the removal of this content to an internal channel. A larger discussion that has little impact on this PR. We can easily put this back if the resolution calls fro that action.

@blackfalcon blackfalcon merged commit 040a8b3 into master Mar 5, 2024
4 checks passed
@blackfalcon blackfalcon deleted the dsande/focus branch March 5, 2024 01:28
blackfalcon added a commit that referenced this pull request Mar 5, 2024
This commit adds a new focus-visible feature to WCSS. At the same time,
the legacy focus-visible solution has been deprecated.

The use of the Sass variable to change output was not well adopted.

In order NOT to force this update into all UI scenarios as there may be
local code to address this in some cases, this feature has been added as
an OPT-IN feature.

See inline documentation for info related to update and install
instructions.

Changes to be committed:
modified:   README.md
modified:   src/_core.scss
new file:   src/_focus-visible.scss
new file:   src/bundled/essentials+fv.scss
modified:   src/elementDemoStyles/elementDemoStyles.scss
blackfalcon pushed a commit that referenced this pull request Mar 5, 2024
# [5.1.0](v5.0.8...v5.1.0) (2024-03-05)

### Features

* a11y focus-visible default halo [#183](#183) ([3952acd](3952acd))
@blackfalcon
Copy link
Member Author

🎉 This PR is included in version 5.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@blackfalcon blackfalcon added the released Completed work has been released label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Completed work has been released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

focus-visible working incorrectly
3 participants