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(progress-bar): query state animation not working #11459

Merged

Conversation

crisbeto
Copy link
Member

Currently the animation for a progress bar in the query state is disabled by default due to the _noop-animation producing the wrong selector. It looks like using the ampersand inside interpolation (e.g. in @at-root ._mat-animation-noopable#{&}) doesn't work as expected once we have more than one selector. What ends up happening is that SASS interpolates the first selector, but then leaves the other one as it is, which causes it to disable the animation.

Fixes #11453.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label May 22, 2018
Copy link
Member

@josephperrott josephperrott left a comment

Choose a reason for hiding this comment

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

LGTM

@josephperrott josephperrott added target: patch This PR is targeted for the next patch release pr: lgtm labels May 31, 2018
@crisbeto crisbeto force-pushed the 11453/progress-bar-query-animation branch from b404c81 to 330a64a Compare June 1, 2018 07:00
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Jun 1, 2018
@danielsogl
Copy link

Any updates? This fix is important for my application.

@jotatoledo
Copy link

It would be amazing if you guys could merge this on the next patch release. Currently this is a deal breaker for some of the simplest use cases of the progress bar

@jelbourn jelbourn added the P1 Impacts a large percentage of users; if a workaround exists it is partial or overly painful label Aug 13, 2018
Currently the animation for a progress bar in the `query` state is disabled by default due to the `_noop-animation` producing the wrong selector. It looks like using the ampersand inside interpolation (e.g. in `@at-root ._mat-animation-noopable#{&}`) doesn't work as expected once we have more than one selector. What ends up happening is that SASS interpolates the first selector, but then leaves the other one as it is, which causes it to disable the animation.

Fixes angular#11453.
@crisbeto crisbeto force-pushed the 11453/progress-bar-query-animation branch from 330a64a to 057de25 Compare August 14, 2018 19:19
@mmalerba mmalerba merged commit b40967f into angular:master Aug 14, 2018
mmalerba pushed a commit that referenced this pull request Aug 20, 2018
Currently the animation for a progress bar in the `query` state is disabled by default due to the `_noop-animation` producing the wrong selector. It looks like using the ampersand inside interpolation (e.g. in `@at-root ._mat-animation-noopable#{&}`) doesn't work as expected once we have more than one selector. What ends up happening is that SASS interpolates the first selector, but then leaves the other one as it is, which causes it to disable the animation.

Fixes #11453.
@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 Sep 9, 2019
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 P1 Impacts a large percentage of users; if a workaround exists it is partial or overly painful 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: Progress Bar query mode not animated
7 participants