diff --git a/slider/demo/demo.ts b/slider/demo/demo.ts index 1df07ecd10..4045765a9d 100644 --- a/slider/demo/demo.ts +++ b/slider/demo/demo.ts @@ -21,7 +21,7 @@ const collection = new Knob('min', {ui: numberInput(), defaultValue: 0}), new Knob('max', {ui: numberInput(), defaultValue: 100}), new Knob('step', {ui: numberInput(), defaultValue: 1}), - new Knob('tickmarks', {ui: boolInput(), defaultValue: false}), + new Knob('ticks', {ui: boolInput(), defaultValue: false}), new Knob('labeled', {ui: boolInput(), defaultValue: false}), new Knob('disabled', {ui: boolInput(), defaultValue: false}), ]); diff --git a/slider/demo/stories.ts b/slider/demo/stories.ts index b0173ebb7b..1e755a3306 100644 --- a/slider/demo/stories.ts +++ b/slider/demo/stories.ts @@ -19,7 +19,7 @@ export interface StoryKnobs { max: number; step: number; range: boolean; - tickmarks: boolean; + ticks: boolean; labeled: boolean; disabled: boolean; } @@ -45,7 +45,7 @@ const standard: MaterialStoryInit = { .max=${knobs.max} .step=${knobs.step ?? 1} .range=${knobs.range} - .tickmarks=${knobs.tickmarks} + .ticks=${knobs.ticks} .labeled=${knobs.labeled ?? false} .disabled=${knobs.disabled ?? false} > @@ -66,7 +66,7 @@ const multiValue: MaterialStoryInit = { .min=${knobs.min} .max=${knobs.max} .step=${knobs.step ?? 1} - .tickmarks=${knobs.tickmarks} + .ticks=${knobs.ticks} .labeled=${knobs.labeled ?? true} .disabled=${knobs.disabled ?? false} > @@ -124,8 +124,8 @@ const customStyling: MaterialStoryInit = { const range = max - min; const fractionStart = valueStart! / range; const fractionEnd = valueEnd! / range; - target.valueStartLabel = labelFor(fractionStart); - target.valueEndLabel = labelFor(fractionEnd); + target.valueLabelStart = labelFor(fractionStart); + target.valueLabelEnd = labelFor(fractionEnd); } return html`