Skip to content

Commit 0bc21f2

Browse files
TechAsifcrisbeto
authored andcommitted
fix(material/slider): add missing closing parenthesis in tick mark transform (angular#32580)
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'. (cherry picked from commit fb1b66b)
1 parent 5086b1e commit 0bc21f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/material/slider/slider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ export class MatSlider implements AfterViewInit, OnDestroy, _MatSlider {
601601
// TODO(wagnermaciel): See if we can avoid doing this and just using flex to position these.
602602
const offset = index * (this._tickMarkTrackWidth / (this._tickMarks.length - 1));
603603
const translateX = this._isRtl ? this._cachedWidth - 6 - offset : offset;
604-
return `translateX(${translateX}px`;
604+
return `translateX(${translateX}px)`;
605605
}
606606

607607
// Handlers for updating the slider ui.

0 commit comments

Comments
 (0)