[theme] `theme.transition.create` defaults to non theme easing value
See original GitHub issueIf you try to modify the theme.transition.easing
object in the theme, it does not seem to apply to the components.
Here’s a reproduction: https://codesandbox.io/s/youthful-noether-rex8r?file=/src/App.js
If you inspect the <ListItem button />
, you’ll see that it has a transition with a cubic-bezier that does not match with the theme I provide, even though the transition duration is updated properly.
Version: v4.11.3
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Transitions - Material UI - MUI
The theme key enables you to customize the durations and easings of the various transitions used across MUI components, and offers a utility...
Read more >[Transitions] Some components don't use transition durations ...
I noticed this when trying to tweak the transitions for a test environment to set them all to 0 / "none" to make...
Read more >transition-timing-function - CSS: Cascading Style Sheets | MDN
The transition-timing-function CSS property sets how intermediate values are calculated for CSS properties being affected by a transition ...
Read more >MUI: Overriding easing/timing function in Slide Transition ...
In MUI v5, you can change the default timing functions of the Slide component by overriding the easing props:
Read more >Transition Property - Tailwind CSS
If you need to use a one-off transition-property value that doesn't make sense to include in your theme, use square brackets to generate...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey, can I work on this?
That’s a good point. We can create
createTransitions
factory. It could look something like this:I’ve copied the
create
function fromtransitions.js
and changed the defaultduration
andeasing
to be from the merged values. We can remove thecreate
function defined intransition.js
after this change.