Skip to content

fix(material/core): align ripple animation parameters with spec - #23086

Merged
wagnermaciel merged 1 commit into
angular:masterfrom
crisbeto:ripple-parameters
Jul 9, 2021
Merged

wagnermaciel merged 1 commit into
angular:masterfrom
crisbeto:ripple-parameters

Conversation

@crisbeto

Copy link
Copy Markdown
Member

Aligns the ripple timings with the numbers from MDC.

@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release labels Jun 29, 2021
@crisbeto
crisbeto requested review from devversion and jelbourn June 29, 2021 05:50
@google-cla google-cla Bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jun 29, 2021
Comment thread src/material/core/ripple/_ripple.scss Outdated

@devversion devversion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, either way works for me with the start scale.

@jelbourn

Copy link
Copy Markdown
Contributor

Repeating here our discussion from Slack (because I can't upload webm videos on GitHub) for transparency:

It looks like this value isn't applied directly to scale, but is instead used for an intermediate calculation:
https://github.com/material-components/material-components-web/blob/master/packages/mdc-ripple/foundation.ts#L530-L531

Aligns the ripple timings with the numbers from MDC.
@crisbeto
crisbeto force-pushed the ripple-parameters branch from 7352c89 to 5342e06 Compare July 3, 2021 11:08
@crisbeto

crisbeto commented Jul 3, 2021

Copy link
Copy Markdown
Member Author

I've reverted the change to the initial scale.

@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Jul 3, 2021
@wagnermaciel
wagnermaciel merged commit 0816f08 into angular:master Jul 9, 2021
wagnermaciel pushed a commit that referenced this pull request Jul 9, 2021
Aligns the ripple timings with the numbers from MDC.

(cherry picked from commit 0816f08)
@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 9, 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 P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants