v0.11.10
Pre-release
Pre-release
This is a fairly small collection of miscellaneous, quality of life features and fixes.
Silk
- Add missing modifiers for all remaining events (e.g. touch events, clipboard events)
- Add a strongly-typed API for transitions
- Before:
transition("opacity 1s, color 2s")
, after:transition(CSSTransition("opacity", 1.s), CSSTransition("color", 2.s))
- Also, you can create a transition group:
transition(*CSSTransition.group(listOf("opacity", "color", "background-color"), 1.s, Ease)
if you want to apply the same transition values to multiple properties. - The provided API is now very similar to animations.
- Before:
- You can now set
margin
andpadding
modifiers onTooltip
s, and the tooltip arrow will no longer be separated from the shifting content. - Tweaked the
AnimatedColorSurfaceVariant
recursive CSS logic to work just as well (as far as initial tests indicate) while being more selective in which children they affect.- This variant would previously interfere with users who were trying to use transitions on their own elements. It could still happen if you're adding a transition to a
div
, but all other elements are now excluded.
- This variant would previously interfere with users who were trying to use transitions on their own elements. It could still happen if you're adding a transition to a