Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

[terra-form-search-select] Added visual focus dashed border for list options #3979

Merged
merged 9 commits into from
Dec 4, 2023

Conversation

KV106606Viswanath
Copy link
Contributor

@KV106606Viswanath KV106606Viswanath commented Nov 20, 2023

Summary

previously there is no visual focus indication for list options when a list option gets focussed now the visual focus dashed border has been added for form select list options.

What was changed:
1 => Visual focus dashed border has been added for list options.
2 => Added focus border for both input field and dropdown icon for terra-form-select.

Why it was changed:
Terra Form select has a visual focus border however this focus border is not extended to the whole control i.e dropdown icon.

Testing

This change was tested using:

  • WDIO
  • Jest
  • Visual testing (please attach a screenshot or recording)
  • Other (please describe below)
  • No tests are needed

Reviews

In addition to engineering reviews, this PR needs:

  • UX review
  • Accessibility review
  • Functional review

Additional Details

This PR resolves:

UXPLATFORM-9837


Thank you for contributing to Terra.
@cerner/terra

Screenshot 2023-11-10 at 10 10 58 AM

Before fix :
Screenshot 2023-11-30 at 6 38 11 PM

After fix :
image

@KV106606Viswanath KV106606Viswanath requested a review from a team as a code owner November 20, 2023 10:29
@KV106606Viswanath KV106606Viswanath self-assigned this Nov 20, 2023
@@ -77,6 +77,7 @@

.is-active {
background-color: var(--terra-form-select-option-active-background-color, #ebf6fd);
border: var(--terra-form-select-option-active-color-border, 2px dashed #000);
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be outline and outline-offset I think not a border !!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

@@ -77,6 +77,8 @@

.is-active {
background-color: var(--terra-form-select-option-active-background-color, #ebf6fd);
outline: var(--terra-form-select-option-active-color-outline, 2px dashed #000);
outline-offset: var(--terra-form-select-option-active-color-outline-offset, -2px);
Copy link
Contributor

Choose a reason for hiding this comment

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

this variable does not have references in other themes. do we need this variable..?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, outline-offset value is same for remaining themes, hence i haven't added the outline-offset variable in other themes.

Copy link
Contributor

@supreethmr supreethmr Nov 27, 2023

Choose a reason for hiding this comment

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

then there is no use of the declaring css var --terra-form-select-option-active-color-outline-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.

Removed

@SwethaM03
Copy link

+1 for the focus indicator which is visible when we navigate to the options in the list.

@MadanKumarGovindaswamy MadanKumarGovindaswamy added ⭐ UX Reviewed UX Reviewed and approved. and removed UX Review Required labels Dec 1, 2023
@PK106552 PK106552 force-pushed the KV106606-Search-Select-Visual-Focus-Border branch from f1d1a9b to 9c7377d Compare December 1, 2023 09:30
@PK106552 PK106552 force-pushed the KV106606-Search-Select-Visual-Focus-Border branch from f29b004 to 5418872 Compare December 4, 2023 06:41
@github-actions github-actions bot temporarily deployed to preview-pr-3979 December 4, 2023 06:49 Destroyed
@supreethmr supreethmr merged commit 50cc342 into main Dec 4, 2023
21 checks passed
@supreethmr supreethmr deleted the KV106606-Search-Select-Visual-Focus-Border branch December 4, 2023 10:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants