angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.34k stars 6.74k forks source link

feat(Elevation class helpers): Expose transition-property-value #22699

Open MuMaestro opened 3 years ago

MuMaestro commented 3 years ago

Feature Description

While building styles for elements that use transitions of elevations and other values, the elevation-transition get overridden or overwrites other transitions defined in the same component. This could be easily solved by exposing the private-transition-property-value that returns a value inserted in a transition;

Use Case

By exposing the function, it could be used as as follows

.element {
     transition: border 1s ease-in, transition-property-value(), width 1s ease-in;
}

Also

I don't know much css or scss, but I guess there is a hacky way of inheriting already set transitions, appending to the current list.

MuMaestro commented 3 years ago

One solution I came up with is a manual definition of transitions of shadow-box and others that I need. But this makes me use manual, user defined animations, which is bad; I there any expositions on animations easings in angular material ?

angular-robot[bot] commented 2 years ago

Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.

Find more details about Angular's feature request process in our documentation.

angular-robot[bot] commented 2 years ago

Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.

We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.

You can find more details about the feature request process in our documentation.

jamcoupe commented 10 months ago

This is forcing consumers to manually add the elevation transition styles and bypassing the mixin provided.

Could this not be fixed by allowing the function to be extensible somehow?

dhruvishah122 commented 10 months ago

can you pls assign me this work