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

fix(input): don't highlight container when readonly input is focused #5776

Merged
merged 1 commit into from Jul 20, 2017

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Jul 15, 2017

  • Doesn't highlight the md-input-container if the underlying readonly input is focused. This is consistent with the native behavior both on PC and Mac.
  • Adds a unit test to ensure that the mat-focused class is being added.

Fixes #5749.

* Doesn't highlight the `md-input-container` if the underlying readonly input is focused. This is consistent with the native behavior both on PC and Mac.
* Adds a unit test to ensure that the `mat-focused` class s being added.

Fixes angular#5749.
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jul 15, 2017
@mmalerba mmalerba added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Jul 17, 2017
@kara kara merged commit 349121d into angular:master Jul 20, 2017
crisbeto added a commit to crisbeto/material2 that referenced this pull request Sep 23, 2017
Prevents readonly inputs from being highlighted when they're focused. This is consistent with the native input behavior.

Note: This was introduced initially through angular#5776, but it looks like it didn't make it through the transition to `mat-form-field`.
crisbeto added a commit to crisbeto/material2 that referenced this pull request Sep 29, 2017
Prevents readonly inputs from being highlighted when they're focused. This is consistent with the native input behavior.

Note: This was introduced initially through angular#5776, but it looks like it didn't make it through the transition to `mat-form-field`.
andrewseguin pushed a commit that referenced this pull request Sep 29, 2017
…7273)

Prevents readonly inputs from being highlighted when they're focused. This is consistent with the native input behavior.

Note: This was introduced initially through #5776, but it looks like it didn't make it through the transition to `mat-form-field`.
@derYvo
Copy link

derYvo commented Jan 25, 2019

it does not work on appearance="outline".
In this case it's highlightened...

@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 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove highlight md-input-container for mdInput[readonly] on focus
5 participants