Skip to content

Revert "fix(material-experimental/mdc-button): set proper touch target #22925

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 1 commit into from
Jun 9, 2021

Conversation

andrewseguin
Copy link
Contributor

This reverts commit 793e1f1.

This has to be reverted from Google because the RTL icon buttons are breaking layout. See screenshot where there an outline around the touch targets.

Looks like we need to switch the transform to transform: translate(50%, -50%) in RTL

Screen Shot 2021-06-08 at 15 40 09 PM

@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jun 8, 2021
@andrewseguin andrewseguin added the target: patch This PR is targeted for the next patch release label Jun 8, 2021
@andrewseguin andrewseguin requested a review from mmalerba June 8, 2021 21:51
Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

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

LGTM, but it might be quicker to just fix the RTL issue. Let me know if I should submit a fix.

@andrewseguin andrewseguin added the action: merge The PR is ready for merge by the caretaker label Jun 9, 2021
@andrewseguin andrewseguin merged commit 2f873a8 into angular:master Jun 9, 2021
andrewseguin added a commit that referenced this pull request Jun 9, 2021
crisbeto added a commit to crisbeto/material-components-web that referenced this pull request Jun 9, 2021
Currently the `touch-target` mixin produces styles that will set the touch target outside of the host node on RTL layouts (see angular/components#22925). These changes adjust the styles so that the target is always centered.
@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 Jul 10, 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 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.

2 participants