Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
setLastTrackMarkersStyleProperty: (propertyName: string, value: any) => {
if (this.root.ref) {
// We remove and append new nodes, thus, the last track marker must be dynamically found.
const lastTrackMarker = this.root.ref.querySelector(
MDCSliderFoundation.strings.LAST_TRACK_MARKER_SELECTOR
);
lastTrackMarker &&
lastTrackMarker.style.setProperty(propertyName, value);
}
},
isRTL: () =>