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

web-components: focus outline color fixes #1305

Merged
merged 11 commits into from
Sep 10, 2024

Conversation

harshil1793
Copy link
Contributor

@harshil1793 harshil1793 commented Aug 27, 2024

Chromatic

https://2936-focus-v3-components-fix--65a6e2ed2314f7b8f98609d8.chromatic.com


Description

This PR fixes focus outline color for v3 components.

Closes department-of-veterans-affairs/vets-design-system-documentation#2936

QA Checklist

  • Component maintains 1:1 parity with design mocks
  • Text is consistent with what's been provided in the mocks
  • Component behaves as expected across breakpoints
  • Accessibility expert has signed off on code changes (if applicable. If not applicable provide reason why)
  • Designer has signed off on changes (if applicable. If not applicable provide reason why)
  • Tab order and focus state work as expected
  • Changes have been tested against screen readers (if applicable. If not applicable provide reason why)
  • New components are covered by e2e tests; updates to existing components are covered by existing test suite
  • Changes have been tested in vets-website using Verdaccio (if applicable. If not applicable provide reason why)

Screenshots

Breadcrumbs:
Screenshot 2024-08-27 at 7 04 02 PM

Banner promo:
Screenshot 2024-08-27 at 7 03 53 PM

Statement of truth:
Screenshot 2024-08-27 at 7 04 32 PM

Privacy agreement:
Screenshot 2024-08-27 at 7 04 22 PM

Back to top:
Screenshot 2024-08-27 at 7 03 40 PM

Acceptance criteria

  • QA checklist has been completed
  • Screenshots have been attached that cover desktop and mobile screens

Definition of done

  • Documentation has been updated, if applicable
  • A link has been provided to the originating GitHub issue (or connected to it via ZenHub)

…mo-banner, va-back-to-top, va-statement-of-truth
@harshil1793 harshil1793 added the patch Patch change in semantic versioning label Aug 27, 2024
@harshil1793 harshil1793 requested a review from a team as a code owner August 27, 2024 23:08
@jamigibbs
Copy link
Contributor

The original ticket says that the outside yellow outline should be removed from this banner (keep the inside border):

Screenshot 2024-08-28 at 12 05 42 PM

Currently outlines the banner itself with the yellow outline, then the internal elements with the default browser outline.
Instead, we should remove the outline from the banner itself as it is not an interactive element, then apply the yellow outline to the link and button inside the banner.

@jamigibbs
Copy link
Contributor

jamigibbs commented Aug 28, 2024

I still see a transition animation in the back to top component. The original issue says:

Remove transition animation to keep it consistent with other components.

Screen.Recording.2024-08-28.at.12.08.22.PM.mov

@harshil1793
Copy link
Contributor Author

For the banner outline, the issue is coming from the formation because va-promo-banner has an href attribute. I tried to override it, but it doesn't seem to work. Do you think I should make a change in formation to fix this?
Screenshot 2024-08-28 at 2 32 25 PM

@jamigibbs
Copy link
Contributor

For the banner outline, the issue is coming from the formation because va-promo-banner has an href attribute. I tried to override it, but it doesn't seem to work. Do you think I should make a change in formation to fix this? Screenshot 2024-08-28 at 2 32 25 PM

Can you reset it if you put it in the web component global stylesheet?

@harshil1793 harshil1793 requested a review from danbrady September 6, 2024 15:21
@danbrady
Copy link
Contributor

danbrady commented Sep 6, 2024

@harshil1793 I notice the focus ring disappears on the Back to top if it's hovered over:

Screen.Recording.2024-09-06.at.1.09.08.PM.mov

@harshil1793
Copy link
Contributor Author

@danbrady I believe that is existing behavior, I don't mind fixing that if its a bug.

@danbrady
Copy link
Contributor

danbrady commented Sep 6, 2024

@harshil1793 Ah, you're right. I see the bug in the existing component too. It would be great if you can fix it now with this update. If the issue starts to take up too much time though, let's create a separate ticket for it. Thanks!

@harshil1793 harshil1793 merged commit 35e9d0d into main Sep 10, 2024
8 checks passed
@harshil1793 harshil1793 deleted the 2936-focus-v3-components-fix branch September 10, 2024 16:30
@jamigibbs jamigibbs changed the title fix: focus outline color fix for v3 components web-components: focus outline color fixes Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Patch change in semantic versioning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update focus outline for v3 components
4 participants