-
Notifications
You must be signed in to change notification settings - Fork 166
[terra-form-select] - Fixed SR issues #3985
Conversation
@@ -265,7 +265,7 @@ class Frame extends React.Component { | |||
this.hasEscPressed = true; | |||
event.stopPropagation(); | |||
this.closeDropdown(); | |||
} else if (!this.state.isOpen && keyCode === KeyCode.KEY_ESCAPE && this.hasEscPressed) { |
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.
why hasEscPressed
is removed
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.
hasEscPressed check will be preventing to clear selected item when dropdown Collapsed state and when pressing ESC key
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 think that is an expected behavior of. not clearing selected value on esc Key press. selected value should only be cleared only when allowClear
prop is set to true
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 - 52f4495
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 have made changes as per your suggestions.
1 => Added condition that selected value should be cleared onEsc when allowClear is set to true.
2 => Fixed VO it reads as select a color selected
when value is cleared with esc key.
Attached screen record for your references.
Screen.Recording.2023-11-27.at.7.09.02.PM.mov
* Fixed | ||
* Fixed ScreenReader reading undefined selected and left and parent extra information in `terra-form-select-combobox`. |
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.
Move this entry to unreleased section
* Fixed | |
* Fixed ScreenReader reading undefined selected and left and parent extra information in `terra-form-select-combobox`. | |
* Fixed | |
* Fixed screen reader response for `terra-form-select-combobox`. |
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 - 3f70c69
…core into combobox-SR-issues
visuallyHiddenComponent.current.innerText = ''; | ||
} | ||
const noMatchingResultText = intl.formatMessage({ id: 'Terra.form.select.noResults' }, { text: searchValue }); | ||
visuallyHiddenComponent.current.innerText = `${noMatchingResultText}, ${freeTextValue}`; |
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.
Can you attach JAWS speech history as well similar to VO screenshots as a evidence
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.
Done. Thanks
@@ -104,7 +103,9 @@ class Menu extends React.Component { | |||
constructor(props) { | |||
super(props); | |||
|
|||
this.state = {}; | |||
this.state = { | |||
closedViaKeyEvent: false, |
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.
Can you provide link of code line where we are changing the value of this state from its initial value
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.
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.setState({ closedViaKeyEvent: true }); |
+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-9845
Thank you for contributing to Terra.
@cerner/terra
Before fix:
After fix:
Screen.Recording.2023-11-23.at.7.08.31.PM.mp4