-
Notifications
You must be signed in to change notification settings - Fork 58
FORMS-18684: Function cannot be performed by keyboard alone @sunnym @vavarshn #1570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
@@ -40,7 +40,8 @@ | |||
errorDiv: `.${CheckBoxGroup.bemBlock}__errormessage`, | |||
tooltipDiv: `.${CheckBoxGroup.bemBlock}__shortdescription`, | |||
item: `.${CheckBoxGroup.bemBlock}-item`, | |||
optionLabel: `${CheckBoxGroup.bemBlock}__option-label` | |||
optionLabel: `${CheckBoxGroup.bemBlock}__option-label`, | |||
optionLink: `${CheckBoxGroup.bemBlock}__links` |
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 is only there for toggelable link, its not there for checboxgroup
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.
Correct, I added it there to keep consistent with the code style.
let optionLinks = this.element.querySelectorAll(`.${CheckBoxGroup.selectors.optionLink}`); | ||
optionLinks.forEach(optionLink => { | ||
optionLink.addEventListener('keydown', (e)=>{ | ||
if(e.key === 'Enter' || e.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.
Create a variable for the list ['Enter', ' ', 'Spacebar', 'Space'] and use it wherever needed. Please update it in the link below.
#1591 (comment)
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.
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.
Please check the comment.
Description
Related Issue
https://jira.corp.adobe.com/browse/FORMS-18684
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: