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 diff --git a/elements/rh-audio-player/rh-audio-player.css b/elements/rh-audio-player/rh-audio-player.css index 795344dea0..30c3cc7991 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); } @@ -340,8 +338,8 @@ input[type='range'] { #play-tooltip { margin: 0; - --_icon-gap: 16px; - --rh-icon-size: 18px; + --_icon-gap: var(--rh-space-lg, 16px); + --rh-icon-size: var(--rh-size-icon-01, 16px); } #full-play-tooltip { @@ -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); } @@ -447,8 +446,29 @@ rh-menu > button:focus { #play, #full-play { border-radius: 50%; - background-color: var(--_surface-color); - color: var(--rh-audio-player-icon-background-color, var(--_text-color)); + background-color: var(--rh-color-surface-darkest, #151515); + color: + var(--rh-audio-player-icon-background-color, + var(--rh-color-text-primary-on-dark, #ffffff)); + + /* stylelint-disable-next-line no-descending-specificity */ + & rh-icon { + translate: 0% 10%; + + &[icon='play-fill'] { + translate: 9% 10%; + } + } +} + +.dark { + #play, + #full-play { + background-color: var(--rh-color-surface-lightest, #ffffff); + color: + var(--rh-audio-player-icon-background-color, + var(--rh-color-text-primary-on-light, #151515)); + } } .expanded { diff --git a/elements/rh-audio-player/rh-audio-player.ts b/elements/rh-audio-player/rh-audio-player.ts index 94400c495e..543c9bdbac 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,7 @@ export class RhAudioPlayer extends LitElement { const accentColor = !!this.#styles?.getPropertyValue('--rh-audio-player-background-color'); return html` - this.rewind()}> - - - - - + ${this.#translation.get('rewind')} @@ -514,14 +505,7 @@ export class RhAudioPlayer extends LitElement { class="toolbar-button" ?disabled=${forwarddisabled} @click=${() => this.forward()}> - - - - - + ${this.#translation.get('advance')} `}${!this.#hasMenu ? '' : html` @@ -600,7 +584,7 @@ export class RhAudioPlayer extends LitElement { @transcriptdownload=${this.#onTranscriptDownload}> - + `; }