Skip to content

Commit 49c9391

Browse files
committed
Minor text fixes
1 parent 23d849e commit 49c9391

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/components/slider/slider.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="md-slider-container"
33
[class.md-slider-sliding]="isSliding"
44
[class.md-slider-active]="isActive"
5-
[class.md-slider-thumb-label-showing]="_thumbLabel">
5+
[class.md-slider-thumb-label-showing]="thumbLabel">
66
<div class="md-slider-track-container">
77
<div class="md-slider-track"></div>
88
<div class="md-slider-track md-slider-track-fill"></div>

src/components/slider/slider.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('MdSlider', () => {
2727
SliderWithStep,
2828
SliderWithAutoTickInterval,
2929
SliderWithSetTickInterval,
30-
SliderWithThumbLabel
30+
SliderWithThumbLabel,
3131
],
3232
});
3333

@@ -548,11 +548,11 @@ describe('MdSlider', () => {
548548
it('should update the thumb label text on click', () => {
549549
expect(thumbLabelTextElement.textContent).toBe('0');
550550

551-
dispatchClickEvent(sliderTrackElement, 0.49);
551+
dispatchClickEvent(sliderTrackElement, 0.13);
552552
fixture.detectChanges();
553553

554554
// The thumb label text is set to the slider's value. These should always be the same.
555-
expect(thumbLabelTextElement.textContent).toBe(`${sliderInstance.value}`);
555+
expect(thumbLabelTextElement.textContent).toBe('13');
556556
});
557557

558558
it('should update the thumb label text on slide', () => {

src/components/slider/slider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class MdSlider implements AfterContentInit {
5050
/** Whether or not to show the thumb label. */
5151
@Input('thumb-label')
5252
@BooleanFieldValue()
53-
private _thumbLabel: boolean = false;
53+
thumbLabel: boolean = false;
5454

5555
/** The miniumum value that the slider can have. */
5656
private _min: number = 0;

0 commit comments

Comments
 (0)