-
Notifications
You must be signed in to change notification settings - Fork 166
[terra-form-search-select] Added visual focus dashed border for list options #3979
Conversation
@@ -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); |
There was a problem hiding this comment.
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 !!
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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..?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 !!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
+1 for the focus indicator which is visible when we navigate to the options in the list. |
f1d1a9b
to
9c7377d
Compare
f29b004
to
5418872
Compare
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:
Reviews
In addition to engineering reviews, this PR needs:
Additional Details
This PR resolves:
UXPLATFORM-9837
Thank you for contributing to Terra.
@cerner/terra
Before fix :
After fix :