-
Notifications
You must be signed in to change notification settings - Fork 166
[terra-form-select] - Fix select option width and styling #4023
Conversation
@@ -2,6 +2,10 @@ | |||
|
|||
## Unreleased | |||
|
|||
* Changed | |||
* Changed --terra-form-select-option-padding value to the orion-fusion-theme to match consistent padding. |
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.
* Changed --terra-form-select-option-padding value to the orion-fusion-theme to match consistent padding. | |
* Changed --terra-form-select-option-padding value to match with the orion-fusion-theme for consistency. |
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 - d000854
/** | ||
* Sets the hovered option as the active value. | ||
* @param {event} event - The mouse enter event. | ||
* @param {ReactNode} option - The option that received the mouse enter event. | ||
*/ | ||
handleMouseEnter(event, option) { | ||
// Prevents setting the active option on mouse enter if the keyboard scrolled the view. | ||
if (this.scrollTimeout) { | ||
return; | ||
} | ||
|
||
if (!option.props.disabled) { | ||
this.setState({ active: option.props.value }); | ||
} | ||
|
||
if (option.props.onMouseEnter) { | ||
option.props.onMouseEnter(event); | ||
} | ||
} | ||
|
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.
I understand that this is now being handled by CSS but will this cause any loss of functionality?
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 functionality will add only is-active class on mouse hover, now this being handled by CSS, and this won't cause any loss of functionality.
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.
+1 |
Summary
What was changed:
Why it was changed:
Testing
This change was tested using:
Reviews
In addition to engineering reviews, this PR needs:
Additional Details
This PR resolves:
UXPLATFORM-10121
Thank you for contributing to Terra.
@cerner/terra
Befor fix :
After fix :