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(@schematics/angular): replace interactive div with button in application component template #21302

Merged
merged 1 commit into from Jul 8, 2021
Merged

Conversation

alan-agius4
Copy link
Collaborator

A keyboard user who has a problem in using a mouse, will not be able to select the div, because he cannot initiate the click event, which is specific to the mouse. Interactive elements like button can initiate the click event on keyboard events.

Instead of adding additional events, such as keyup, keydown or keypress, we replace these with a button.

@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Jul 7, 2021
@google-cla google-cla bot added the cla: yes label Jul 7, 2021
…application component template

A keyboard user who has a problem in using a mouse, will not be able to select the `div`, because he cannot initiate the click event, which is specific to the mouse. Interactive elements like button can initiate the click event on keyboard events.

Instead of adding additional events, such as `keyup`, `keydown` or `keypress`, we replace these with a `button`.
@alan-agius4 alan-agius4 changed the title fix(@schematics/angular): replace divs with buttons in application component template fix(@schematics/angular): replace interactive div with button in application component template Jul 7, 2021
@alan-agius4 alan-agius4 requested a review from clydin July 7, 2021 07:18
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Jul 8, 2021
@clydin clydin merged commit 1b5e18e into angular:master Jul 8, 2021
@alan-agius4 alan-agius4 deleted the dev-to-=button branch July 8, 2021 16:09
@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 Aug 8, 2021
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 target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants