This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 165
[terra-form-select] Fixed focus issue in MultiSelect #4089
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
9ad3f13
UXPLATFORM-10191 Fixed focus issue in multiselect
7e9da3e
Refactored tabIndex logic
adavijit f2afd03
Refactored area-label logic
adavijit 4f3f9f4
Modified alert-spec file
adavijit d47e088
UXPLATFORM-191 Fixed dropdown open issue
adavijit 497d4a9
Update packages/terra-form-select/translations/es.json
adavijit 4433fb7
Update packages/terra-form-select/translations/de.json
adavijit 64d9240
Update packages/terra-form-select/src/shared/_Tag.jsx
adavijit bc45c30
Refactored tab key feature
adavijit f158e38
Refactored tab key when ariaHidden
adavijit d66efa8
Refactored tabIndex logic
adavijit f8075d5
Removed aria-hidden and refactored area-label logic
adavijit a551809
Refactored role logic
adavijit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...ages/terra-core-docs/src/terra-dev-site/test/form-select/ControlMultipleDisabled.test.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import React from 'react'; | ||
import classNames from 'classnames/bind'; | ||
import Select from 'terra-form-select'; | ||
import styles from './common/Select.test.module.scss'; | ||
|
||
const cx = classNames.bind(styles); | ||
|
||
class ControlledMultipleDisabled extends React.Component { | ||
constructor() { | ||
super(); | ||
|
||
this.state = { value: ['blue', 'red'] }; | ||
this.handleChange = this.handleChange.bind(this); | ||
} | ||
|
||
handleChange(value) { | ||
this.setState({ value }); | ||
} | ||
|
||
render() { | ||
return ( | ||
<div className={cx('content-wrapper')}> | ||
<Select | ||
id="multiple" | ||
onChange={this.handleChange} | ||
placeholder="Select a color" | ||
value={this.state.value} | ||
variant="multiple" | ||
disabled | ||
> | ||
<Select.Option value="blue" display="Blue" /> | ||
<Select.Option value="green" display="Green" /> | ||
<Select.Option value="purple" display="Purple" /> | ||
<Select.Option value="red" display="Red" /> | ||
<Select.Option value="violet" display="Violet" /> | ||
</Select> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default ControlledMultipleDisabled; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 are the additional tab key is required to bring focus to alert content..?
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.
@supreethmr Earlier pressing tab key was not focusing inside the input field, that is the deselect option. Now since there are two options in the list, to get out side of the input box we need to press
tab
two more times