From 0793a219a2c354faa3e22d19c6c4ab0db4511794 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Wed, 25 Jan 2023 16:52:30 -0500 Subject: [PATCH] fix play/pause buttons; fixes #1147 --- docs/resources/changelog.md | 4 ++++ src/components/animated-image/animated-image.styles.ts | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/resources/changelog.md b/docs/resources/changelog.md index 6dc1ee72..40446091 100644 --- a/docs/resources/changelog.md +++ b/docs/resources/changelog.md @@ -6,6 +6,10 @@ Components with the Experimental bad New versions of Shoelace are released as-needed and generally occur when a critical mass of changes have accumulated. At any time, you can see what's coming in the next release by visiting [next.shoelace.style](https://next.shoelace.style). +## Next + +- Fixed a bug in `` where the play and pause buttons were transposed [#1147](https://github.com/shoelace-style/shoelace/issues/1147) + ## 2.0.0 This is the first stable release of Shoelace 2, meaning breaking changes to the API will no longer be accepted for this version. Development of Shoelace 2.0 started in January 2020. The first beta was released on [July 15, 2020](https://github.com/shoelace-style/shoelace/releases/tag/v2.0.0-beta.1). Since then, Shoelace has grown quite a bit! Here are some stats from the project as of January 24, 2023: diff --git a/src/components/animated-image/animated-image.styles.ts b/src/components/animated-image/animated-image.styles.ts index 9d2944e0..171ee80d 100644 --- a/src/components/animated-image/animated-image.styles.ts +++ b/src/components/animated-image/animated-image.styles.ts @@ -50,8 +50,8 @@ export default css` opacity: 0; } - :host([play]) slot[name='pause-icon'], - :host(:not([play])) slot[name='play-icon'] { + :host([play]) slot[name='play-icon'], + :host(:not([play])) slot[name='pause-icon'] { display: none; } `;