diff --git a/docs/resources/changelog.md b/docs/resources/changelog.md index 0a28991f3..cb4568c44 100644 --- a/docs/resources/changelog.md +++ b/docs/resources/changelog.md @@ -10,6 +10,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis - Added `?` to optional arguments in methods tables - Added the `scrollPosition()` method to `sl-textarea` to get/set scroll position +- Removed `fill: both` from internal animate utility so styles won't "stick" by default [#450](https://github.com/shoelace-style/shoelace/issues/450) ## 2.0.0-beta.42 diff --git a/src/internal/animate.ts b/src/internal/animate.ts index 4b1a6cd53..e849b9918 100644 --- a/src/internal/animate.ts +++ b/src/internal/animate.ts @@ -8,7 +8,6 @@ export function animateTo(el: HTMLElement, keyframes: Keyframe[], options?: Keyf } const animation = el.animate(keyframes, { - fill: 'both', ...options, duration: prefersReducedMotion() ? 0 : options!.duration });