Skip to content

Added the option enableWCAGAccessibility so the user can use keyboard…#118

Open
AdGalesso wants to merge 1 commit intotanansatpal:masterfrom
AdGalesso:wcag
Open

Added the option enableWCAGAccessibility so the user can use keyboard…#118
AdGalesso wants to merge 1 commit intotanansatpal:masterfrom
AdGalesso:wcag

Conversation

@AdGalesso
Copy link
Copy Markdown

Added the option enableWCAGAccessibility so the user can use keyboards to navigate in the menu
Added the aria-label and aria-invalid for screen readers

Hi @tanansatpal we are using this lib in a big redevelopment that requires to be WCAG compliant. Do you think we can publish those changes. Thanks

…s to navigate in the menu

Added the aria-label and aria-invalid for screen readers

onContainerClick(event: MouseEvent) {
if ((event.target as Element).tagName.toLowerCase() !== 'input') {
if (!this.enableWCAGAccessibility && (event.target as Element).tagName.toLowerCase() !== 'input') {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is removing the earlier functionality of focusing the input if clicked on the element somewhere else

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants