mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(html): add data-availability to volume slider (#1001)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { SliderDataAttrs, VolumeSliderCore } from '@videojs/core';
|
||||
import { VolumeSliderCore, VolumeSliderDataAttrs } from '@videojs/core';
|
||||
import {
|
||||
applyElementProps,
|
||||
applyStateDataAttrs,
|
||||
@@ -120,12 +120,12 @@ export class VolumeSliderElement extends MediaElement {
|
||||
applyStyles(this, cssVars);
|
||||
|
||||
// Apply data attributes to root.
|
||||
applyStateDataAttrs(this, state, SliderDataAttrs);
|
||||
applyStateDataAttrs(this, state, VolumeSliderDataAttrs);
|
||||
|
||||
// Provide context to child elements.
|
||||
this.#provider.setValue({
|
||||
state,
|
||||
stateAttrMap: SliderDataAttrs,
|
||||
stateAttrMap: VolumeSliderDataAttrs,
|
||||
pointerValue: this.#core.valueFromPercent(state.pointerPercent),
|
||||
thumbAttrs: this.#core.getAttrs(state),
|
||||
thumbProps: this.#slider.thumbProps,
|
||||
|
||||
Reference in New Issue
Block a user