Skip to content

mat-select doesn't change appearance when focused with keyboard #3748

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

Closed
mertdeg2 opened this issue Mar 23, 2017 · 6 comments
Closed

mat-select doesn't change appearance when focused with keyboard #3748

mertdeg2 opened this issue Mar 23, 2017 · 6 comments
Assignees
Labels
Accessibility This issue is related to accessibility (a11y) cannot reproduce The team is unable to reproduce this issue with the information provided

Comments

@mertdeg2
Copy link
Contributor

Bug, feature request, or proposal:

Bug

What is the expected behavior?

mat-select is highlighted when user tabs into the component

What is the current behavior?

mat-select doesn't change its appearance when focused with keyboard

What are the steps to reproduce?

Press "Tab" key until the keyboard focus is on mat-slide-toggle

Btw. default plunkr template for creating bugs seem to be not working: https://goo.gl/DlHd6U

@jelbourn jelbourn added Accessibility This issue is related to accessibility (a11y) P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent labels Mar 23, 2017
@kara
Copy link
Contributor

kara commented Mar 24, 2017

@mertdeg2 I'm seeing the correct focus styles when tabbing on the docs site:

https://material.angular.io/components/component/select

To clarify, what do you expect to see? Can you provide an example plunker? You can use this as a base: http://plnkr.co/edit/8RC3ivWBVoJW8aETc2bL?p=preview

@kara kara added cannot reproduce The team is unable to reproduce this issue with the information provided and removed P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent labels Mar 24, 2017
@kara
Copy link
Contributor

kara commented Mar 24, 2017

Or are you talking about #3743 ?

@jelbourn
Copy link
Member

Closing this since it's marked as "Cannot reproduce" and possibly was fixed as part of #3743

@thornblom
Copy link

thornblom commented Feb 6, 2018

@kara I have the same problmen, and not seeing the correct focus styles on docs site. I can navigare and select correct mat-option with UP/DOWN key, but I can't see what is focus due to no appearance change.

No highlighting / background color change

@pbiradar0
Copy link

pbiradar0 commented Jul 24, 2019

hello,

I'm also facing the same issue, here is the scenario,

We want to focus select element using the tab option, I tried below things but didn't work,

HTML:

{{ 'UserSettings_Lable_Selectlanguage' | optTranslate }}

TS:

@ViewChild('ddlLanguage') public ddlLanguage: MatSelect;
onInit(){

this.ddlLanguage.focus(); //Also tried with https://stackoverflow.com/questions/54593925/how-to-set-auto-focus-in-mat-select

}

Thank you in advance

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Accessibility This issue is related to accessibility (a11y) cannot reproduce The team is unable to reproduce this issue with the information provided
Projects
None yet
Development

No branches or pull requests

5 participants