diff --git a/core/api.txt b/core/api.txt index 45a9452312..6d82eeaf33 100644 --- a/core/api.txt +++ b/core/api.txt @@ -861,6 +861,12 @@ ion-range,css-prop,--knob-box-shadow ion-range,css-prop,--knob-size ion-range,css-prop,--pin-background ion-range,css-prop,--pin-color +ion-range,part,bar +ion-range,part,bar-active +ion-range,part,knob +ion-range,part,pin +ion-range,part,tick +ion-range,part,tick-active ion-refresher,none ion-refresher,prop,closeDuration,string,'280ms',false,false diff --git a/core/src/components/range/range.tsx b/core/src/components/range/range.tsx index 418fc0656b..75b9715d30 100644 --- a/core/src/components/range/range.tsx +++ b/core/src/components/range/range.tsx @@ -10,6 +10,13 @@ import { createColorClasses, hostContext } from '../../utils/theme'; * * @slot start - Content is placed to the left of the range slider in LTR, and to the right in RTL. * @slot end - Content is placed to the right of the range slider in LTR, and to the left in RTL. + * + * @part tick - An inactive tick mark. + * @part tick-active - An active tick mark. + * @part pin - The counter that appears above a knob. + * @part knob - The handle that is used to drag the range. + * @part bar - The inactive part of the bar. + * @part bar-active - The active part of the bar. */ @Component({ tag: 'ion-range', @@ -435,14 +442,16 @@ export class Range implements ComponentInterface { 'range-tick': true, 'range-tick-active': tick.active }} + part={tick.active ? 'tick-active' : 'tick'} /> ))} -
+ { renderKnob(isRTL, { @@ -530,8 +539,8 @@ const renderKnob = (isRTL: boolean, { knob, value, ratio, min, max, disabled, pr aria-disabled={disabled ? 'true' : null} aria-valuenow={value} > - {pin &&