Skip to content

Commit de12c69

Browse files
committed
docs(range): improve part descriptions
1 parent dfdadb1 commit de12c69

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

core/src/components/range/range.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,22 @@ import type {
3535
* @part tick-active - An active tick mark.
3636
* @part bar - The inactive part of the bar.
3737
* @part bar-active - The active part of the bar.
38-
* @part knob-handle - The container element that wraps the knob and handles drag interactions.
39-
* @part knob-handle-a - The container element for the first knob. Only available when `dualKnobs` is `true`.
40-
* @part knob-handle-b - The container element for the second knob. Only available when `dualKnobs` is `true`.
41-
* @part knob-handle-lower - The container element for the lower knob. Only available when `dualKnobs` is `true`.
42-
* @part knob-handle-upper - The container element for the upper knob. Only available when `dualKnobs` is `true`.
43-
* @part pin - The counter that appears above a knob.
44-
* @part pin-a - The counter that appears above the first knob. Only available when `dualKnobs` is `true`.
45-
* @part pin-b - The counter that appears above the second knob. Only available when `dualKnobs` is `true`.
46-
* @part pin-lower - The counter that appears above the lower knob. Only available when `dualKnobs` is `true`.
47-
* @part pin-upper - The counter that appears above the upper knob. Only available when `dualKnobs` is `true`.
48-
* @part knob - The visual knob element that appears on the range track.
49-
* @part knob-a - The visual knob element for the first knob. Only available when `dualKnobs` is `true`.
50-
* @part knob-b - The visual knob element for the second knob. Only available when `dualKnobs` is `true`.
51-
* @part knob-lower - The visual knob element for the lower knob. Only available when `dualKnobs` is `true`.
52-
* @part knob-upper - The visual knob element for the upper knob. Only available when `dualKnobs` is `true`.
53-
* @part activated - Added to the knob-handle, knob, and pin when the knob is activated (has the `ion-activated` class). Only one set has this part at a time when `dualKnobs` is `true`.
38+
* @part knob-handle - The container that wraps the knob and handles drag interactions.
39+
* @part knob-handle-a - The container for the knob with the static `A` identity when `dualKnobs` is `true`. This identity does not change, even if the knobs cross and swap which one represents the lower or upper value.
40+
* @part knob-handle-b - The container for the knob with the static `B` identity when `dualKnobs` is `true`. This identity does not change, even if the knobs cross and swap which one represents the lower or upper value.
41+
* @part knob-handle-lower - The container for the knob whose current `value` is `lower` when `dualKnobs` is `true`. The lower and upper parts swap which knob handle they refer to when the knobs cross.
42+
* @part knob-handle-upper - The container for the knob whose current `value` is `upper` when `dualKnobs` is `true`. The lower and upper parts swap which knob handle they refer to when the knobs cross.
43+
* @part pin - The value indicator displayed above a knob.
44+
* @part pin-a - The value indicator above the knob with the static `A` identity when `dualKnobs` is `true`. This identity does not change, even if the knobs cross and swap which one represents the lower or upper value.
45+
* @part pin-b - The value indicator above the knob with the static `B` identity when `dualKnobs` is `true`. This identity does not change, even if the knobs cross and swap which one represents the lower or upper value.
46+
* @part pin-lower - The value indicator above the knob whose current `value` is `lower` when `dualKnobs` is `true`. The lower and upper parts swap which pin they refer to when the knobs cross.
47+
* @part pin-upper - The value indicator above the knob whose current `value` is `upper` when `dualKnobs` is `true`. The lower and upper parts swap which pin they refer to when the knobs cross.
48+
* @part knob - The visual knob element on the range track.
49+
* @part knob-a - The visual knob for the static `A` identity when `dualKnobs` is `true`. This identity does not change, even if the knobs cross and swap which one represents the lower or upper value.
50+
* @part knob-b - The visual knob for the static `B` identity when `dualKnobs` is `true`. This identity does not change, even if the knobs cross and swap which one represents the lower or upper value.
51+
* @part knob-lower - The visual knob whose current `value` is `lower` when `dualKnobs` is `true`. The lower and upper parts swap which knob they refer to when the knobs cross.
52+
* @part knob-upper - The visual knob whose current `value` is `upper` when `dualKnobs` is `true`. The lower and upper parts swap which knob they refer to when the knobs cross.
53+
* @part activated - Added to the knob-handle, knob, and pin when the knob is active. Only one set has this part at a time when `dualKnobs` is `true`.
5454
* @part focused - Added to the knob-handle, knob, and pin that currently has focus. Only one set has this part at a time when `dualKnobs` is `true`.
5555
* @part hover - Added to the knob-handle, knob, and pin when the knob has hover. Only one set has this part at a time when `dualKnobs` is `true`.
5656
* @part pressed - Added to the knob-handle, knob, and pin that is currently being pressed to drag. Only one set has this part at a time when `dualKnobs` is `true`.
@@ -523,7 +523,7 @@ export class Range implements ComponentInterface {
523523
* started dragging the knob.
524524
*
525525
* This is necessary to determine which knob the user is dragging,
526-
* especially when it's a dual knob.
526+
* especially when using dual knobs.
527527
* Plus, it determines when to apply certain styles.
528528
*
529529
* This only needs to be done once since the knob won't change
@@ -552,7 +552,7 @@ export class Range implements ComponentInterface {
552552
* dragged the knob. They just tapped on the bar.
553553
*
554554
* This is necessary to determine which knob the user is changing,
555-
* especially when it's a dual knob.
555+
* especially when using dual knobs.
556556
* Plus, it determines when to apply certain styles.
557557
*/
558558
if (this.pressedKnob === undefined) {

0 commit comments

Comments
 (0)