From 811b9ba479f62f41153078a17bebfc09d5db554a Mon Sep 17 00:00:00 2001 From: Steven Spriggs Date: Mon, 16 Dec 2024 14:16:46 -0500 Subject: [PATCH 1/7] fix(audio-player): use rh-icon instead of custom svg for scrubbers --- elements/rh-audio-player/rh-audio-player.css | 9 ++++----- elements/rh-audio-player/rh-audio-player.ts | 18 ++---------------- 2 files changed, 6 insertions(+), 21 deletions(-) diff --git a/elements/rh-audio-player/rh-audio-player.css b/elements/rh-audio-player/rh-audio-player.css index 70878fcd54..da1383a840 100644 --- a/elements/rh-audio-player/rh-audio-player.css +++ b/elements/rh-audio-player/rh-audio-player.css @@ -114,10 +114,8 @@ rh-audio-player-rate-stepper { width: auto; } -svg.scrubber { - fill: var(--_text-color); - height: var(--_svg-size); - width: var(--_svg-size); +.scrubber { + color: var(--_text-color); padding: var(--_icon-padding); } @@ -353,7 +351,8 @@ input[type='range'] { #full-play-tooltip, #mute-tooltip, #close-tooltip, -#menu-tooltip { +#menu-tooltip, +.scrubber { --rh-icon-size: var(--rh-size-icon-02, 24px); } diff --git a/elements/rh-audio-player/rh-audio-player.ts b/elements/rh-audio-player/rh-audio-player.ts index 94400c495e..dfd112d50b 100644 --- a/elements/rh-audio-player/rh-audio-player.ts +++ b/elements/rh-audio-player/rh-audio-player.ts @@ -484,14 +484,7 @@ export class RhAudioPlayer extends LitElement { class="toolbar-button" ?disabled=${rewinddisabled} @click=${() => this.rewind()}> - - - - - + ${this.#translation.get('rewind')} @@ -514,14 +507,7 @@ export class RhAudioPlayer extends LitElement { class="toolbar-button" ?disabled=${forwarddisabled} @click=${() => this.forward()}> - - - - - + ${this.#translation.get('advance')} `}${!this.#hasMenu ? '' : html` From 5cd8382db6b2b0392752c99319dbe78ed5b3d2b7 Mon Sep 17 00:00:00 2001 From: Steven Spriggs Date: Mon, 16 Dec 2024 14:22:12 -0500 Subject: [PATCH 2/7] chore(audio-player): add changeset --- .changeset/spotty-steaks-decide.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/spotty-steaks-decide.md diff --git a/.changeset/spotty-steaks-decide.md b/.changeset/spotty-steaks-decide.md new file mode 100644 index 0000000000..9db5a0755e --- /dev/null +++ b/.changeset/spotty-steaks-decide.md @@ -0,0 +1,5 @@ +--- +"@rhds/elements": patch +--- + +``: updated icons to use rh-icon From 552f38faf2bd615157a7cb0af0cf43343722f52a Mon Sep 17 00:00:00 2001 From: Steven Spriggs Date: Wed, 18 Dec 2024 15:17:23 -0500 Subject: [PATCH 3/7] fix(audio-player): remove unecessary rh-surface in shadowroot --- elements/rh-audio-player/rh-audio-player.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/elements/rh-audio-player/rh-audio-player.ts b/elements/rh-audio-player/rh-audio-player.ts index dfd112d50b..0318af27ab 100644 --- a/elements/rh-audio-player/rh-audio-player.ts +++ b/elements/rh-audio-player/rh-audio-player.ts @@ -29,7 +29,6 @@ import buttonStyles from './rh-audio-player-button.css'; import rangeStyles from './rh-audio-player-range-styles.css'; import styles from './rh-audio-player.css'; -import '@rhds/elements/rh-surface/rh-surface.js'; import '@rhds/elements/rh-tooltip/rh-tooltip.js'; import '@rhds/elements/rh-icon/rh-icon.js'; @@ -366,8 +365,8 @@ export class RhAudioPlayer extends LitElement { const accentColor = !!this.#styles?.getPropertyValue('--rh-audio-player-background-color'); return html` - ${!poster ? '' : html`
`} - + ${playlabel} @@ -489,14 +489,13 @@ export class RhAudioPlayer extends LitElement { - + ${playlabel} From eee8ef22c32e7fcd85e7b69026f07491650aa57d Mon Sep 17 00:00:00 2001 From: Steven Spriggs Date: Thu, 19 Dec 2024 10:30:48 -0500 Subject: [PATCH 6/7] fix(audio-player): remove unused colorpalette now that surface was removed --- elements/rh-audio-player/rh-audio-player.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/elements/rh-audio-player/rh-audio-player.ts b/elements/rh-audio-player/rh-audio-player.ts index 8f6bb92970..7c4a09cfaa 100644 --- a/elements/rh-audio-player/rh-audio-player.ts +++ b/elements/rh-audio-player/rh-audio-player.ts @@ -367,7 +367,6 @@ export class RhAudioPlayer extends LitElement { return html`
${!poster ? '' : html`
`} - - + + ${playlabel} @@ -488,13 +488,14 @@ export class RhAudioPlayer extends LitElement { - - + + ${playlabel}