Skip to content
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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AdGalesso
Copy link

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
@@ -349,7 +350,7 @@ export class NgxMatIntlTelInputComponent extends _NgxMatIntlTelInputMixinBase
}

onContainerClick(event: MouseEvent) {
if ((event.target as Element).tagName.toLowerCase() !== 'input') {
if (!this.enableWCAGAccessibility && (event.target as Element).tagName.toLowerCase() !== 'input') {
Copy link
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