From e0100f3881b3590d893e9d55fb124c8a1806ab24 Mon Sep 17 00:00:00 2001 From: AS Date: Sat, 20 Dec 2025 12:40:40 +0600 Subject: [PATCH] fix(material/slider): add missing closing parenthesis in tick mark transform Fixed a syntax error in the _calcTickMarkTransform method where the template string was missing a closing parenthesis. The transform string now correctly produces 'translateX(XXpx)' instead of 'translateX(XXpx'. --- src/material/slider/slider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/material/slider/slider.ts b/src/material/slider/slider.ts index 3bf5f6614e2a..d027c782cf4c 100644 --- a/src/material/slider/slider.ts +++ b/src/material/slider/slider.ts @@ -601,7 +601,7 @@ export class MatSlider implements AfterViewInit, OnDestroy, _MatSlider { // TODO(wagnermaciel): See if we can avoid doing this and just using flex to position these. const offset = index * (this._tickMarkTrackWidth / (this._tickMarks.length - 1)); const translateX = this._isRtl ? this._cachedWidth - 6 - offset : offset; - return `translateX(${translateX}px`; + return `translateX(${translateX}px)`; } // Handlers for updating the slider ui.