Skip to content

fix(material/input): show focus indication for readonly inputs - #22847

Merged
amysorto merged 1 commit into
angular:masterfrom
crisbeto:22783/readonly-input-focus
Jul 16, 2021
Merged

amysorto merged 1 commit into
angular:masterfrom
crisbeto:22783/readonly-input-focus

Conversation

@crisbeto

Copy link
Copy Markdown
Member

A long time ago we disabled focus indication on readonly inputs in order to mimic the native browser behavior. It looks like the native behavior has changed to show the focus indication now so these changes remove the old logic and the associated unit tests.

Fixes #22783.

@crisbeto crisbeto added P2 The issue is important to a large percentage of users, with a workaround Accessibility This issue is related to accessibility (a11y) target: patch This PR is targeted for the next patch release labels May 31, 2021
@crisbeto
crisbeto requested review from jelbourn and mmalerba May 31, 2021 16:36
@crisbeto
crisbeto requested a review from devversion as a code owner May 31, 2021 16:36
@google-cla google-cla Bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label May 31, 2021
@crisbeto crisbeto added the G This is is related to a Google internal issue label May 31, 2021
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Jun 1, 2021
A long time ago we disabled focus indication on `readonly` inputs in order to mimic the native browser behavior. It looks like the native behavior has changed to show the focus indication now so these changes remove the old logic and the associated unit tests.

Fixes angular#22783.
@crisbeto
crisbeto force-pushed the 22783/readonly-input-focus branch from ae60fb2 to 9597a5f Compare June 14, 2021 18:20

@mmalerba mmalerba left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@amysorto
amysorto merged commit 4404d0a into angular:master Jul 16, 2021
amysorto pushed a commit that referenced this pull request Jul 16, 2021
A long time ago we disabled focus indication on `readonly` inputs in order to mimic the native browser behavior. It looks like the native behavior has changed to show the focus indication now so these changes remove the old logic and the associated unit tests.

Fixes #22783.

(cherry picked from commit 4404d0a)
@angular-automatic-lock-bot

Copy link
Copy Markdown

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 Aug 16, 2021
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) action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement G This is is related to a Google internal issue P2 The issue is important to a large percentage of users, with a workaround target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(material/input): No focus indication when readonly input gains focus

4 participants