Skip to content

refactor(material-experimental/mdc-chips): implement trailing icon foundation #19318

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

Merged
merged 2 commits into from
May 12, 2020

Conversation

mmalerba
Copy link
Contributor

@mmalerba mmalerba commented May 11, 2020

Project import generated by Copybara.

These changes are mostly based on @crisbeto's #18877 with some
additional changes from @ProDee

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@mmalerba mmalerba force-pushed the _cl_out_310167103 branch from 170bece to 27edd2f Compare May 11, 2020 16:38
@googlebot googlebot added the cla: no PR author must sign Google's Contributor License Agreement: https://opensource.google.com/docs/cla label May 11, 2020
…undation

Project import generated by Copybara.

These changes are mostly based on @crisbeto's #18877 with some
additional changes from @ProDee

PiperOrigin-RevId: 310167103

Co-authored-by: crisbeto <[email protected]>
Co-authored-by: prodee <[email protected]>
@mmalerba mmalerba force-pushed the _cl_out_310167103 branch from 27edd2f to 94ef838 Compare May 11, 2020 17:10
@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: yes PR author has agreed to Google's Contributor License Agreement and removed cla: no PR author must sign Google's Contributor License Agreement: https://opensource.google.com/docs/cla labels May 11, 2020
@mmalerba mmalerba changed the title Project import generated by Copybara. refactor(material-experimental/mdc-chips): implement trailing icon foundation May 11, 2020
@mmalerba mmalerba added blocked This issue is blocked by some external factor, such as a prerequisite PR merge safe labels May 11, 2020
@mmalerba
Copy link
Contributor Author

Marking as merge safe because this PR will be merged first in google3

@mmalerba mmalerba requested review from jelbourn and a team as code owners May 11, 2020 20:15
@mmalerba mmalerba removed the blocked This issue is blocked by some external factor, such as a prerequisite PR label May 11, 2020
@andrewseguin andrewseguin added lgtm action: merge The PR is ready for merge by the caretaker labels May 11, 2020
Copy link
Contributor

@andrewseguin andrewseguin left a comment

Choose a reason for hiding this comment

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

LGTM

@mmalerba mmalerba force-pushed the _cl_out_310167103 branch from bf1d868 to f45ceb4 Compare May 12, 2020 05:18
@mmalerba mmalerba added the target: patch This PR is targeted for the next patch release label May 12, 2020
@mmalerba mmalerba merged commit 8125651 into master May 12, 2020
@mmalerba mmalerba deleted the _cl_out_310167103 branch May 12, 2020 05:40
vanessanschmitt added a commit to vanessanschmitt/material2-vschmitt that referenced this pull request Jun 1, 2020
Fixes an issue where pressing any non-arrow key while the chip
remove icon is focused removes the chip. This should only happen for
ENTER or SPACE. This issue was introduced when MDC refactored the
chip foundation. The handleTrailingIconInteraction method, which
used to call shouldHandleInteraction to detect if the keydown event
was ENTER or SPACE, was replaced with handleTrailingActionInteraction,
which handles all keydown events. This change was made in
github.com/material-components/material-components-web/pull/5890, and
MDC chips were migrated in github.com/angular/pull/19318.
vanessanschmitt added a commit to vanessanschmitt/material2-vschmitt that referenced this pull request Jun 1, 2020
Fixes an issue where pressing any non-arrow key while the chip
remove icon is focused removes the chip. This should only happen for
ENTER or SPACE. This issue was introduced when MDC refactored the
chip foundation. The handleTrailingIconInteraction method, which
used to call shouldHandleInteraction to detect if the keydown event
was ENTER or SPACE, was replaced with handleTrailingActionInteraction,
which handles all keydown events. This change was made in
material-components/material-components-web/pull/5890, and MDC chips
were migrated in angular/pull/19318.
@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 Jun 12, 2020
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 target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants