Skip to content

Commit

Permalink
Updates slider language
Browse files Browse the repository at this point in the history
I removed "range slider" language so that it's not confused with the types of sliders. I also inserted "RangeControl" when referring to the whole component. "Slider" is used when casually referring to the thumb+track portion of the component.
  • Loading branch information
davewhitley authored Jan 25, 2019
1 parent 57fa128 commit 4bd4fcc
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions packages/components/src/range-control/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ A RangeControl can contain the following elements:
1. **Track**: The track shows the range available for user selection. For left-to-right (LTR) languages, the smallest value appears on the far left, and the largest value on the far right. For right-to-left (RTL) languages this orientation is reversed, with the smallest value on the far right and the largest value on the far left.
2. **Thumb**: The thumb slides along the track, displaying the selected value through its position.
3. **Value entry field** (optional): The value entry field displays the currently selected, specific numerical value.
4. **Icon** (optional): An icon can be displayed before or after the range slider.
4. **Icon** (optional): An icon can be displayed before or after the slider.
5. **Tick mark** (optional): Tick marks represent predetermined values to which the user can move the slider.

### Types
Expand All @@ -36,14 +36,14 @@ Continuous sliders allow users to select a value along a subjective range. They

Discrete sliders can be adjusted to a specific value by referencing its value entry field. Use them when it’s important to display/edit the numeric value, like text size.

Possible selections may be organized through the use of tick marks, which a slider thumb will snap to (or to which an input will round up or down).
Possible selections may be organized through the use of tick marks, which a thumb will snap to (or to which an input will round up or down).

### Behavior

- **Click and drag**: The range slider is controlled by clicking the thumb and dragging it.
- **Click jump**: The range slider is controlled by clicking the track.
- **Click and arrow**: The continuous slider is controlled by clicking the thumb, then using arrow keys to move it.

This comment has been minimized.

Copy link
@davewhitley

davewhitley Jan 25, 2019

Author Contributor

This is actually not exclusive to a continuous slider.

- **Tab and arrow**: The range slider is controlled by using the tab key to select the thumb of the desired slider, then using arrow keys to move it.
- **Click and drag**: The slider is controlled by clicking the thumb and dragging it.
- **Click jump**: The slider is controlled by clicking the track.
- **Click and arrow**: The slider is controlled by clicking the thumb, then using arrow keys to move it.
- **Tab and arrow**: The slider is controlled by using the tab key to select the thumb of the desired slider, then using arrow keys to move it.
- **Tick marks** (Optional) Discrete sliders can use evenly spaced tick marks along the slider track, and the thumb will snap to them. Each tick mark should change the setting in increments that are discernible to the user.
- **Value entry field** (Optional): Discrete sliders have value entry fields. After a text entry is made, the slider position automatically updates to reflect the new value.

Expand All @@ -57,32 +57,32 @@ RangeControls can have icons on both ends of the track that reflect a range of v

Changes made with RangeControls are immediate, allowing a user to make adjustments until finding their preference. They shouldn’t be paired with settings that have delays in providing feedback.

![A range slider that requires a save action](https://make.wordpress.org/design/files/2018/12/rangecontrol-save-action.png)
![A RangeControl that requires a save action](https://make.wordpress.org/design/files/2018/12/rangecontrol-save-action.png)

**Don’t**
Don’t use RangeControls if the effect isn’t immediate.

#### Current state

Range sliders reflect the current state of the settings they control.
RangeControls reflect the current state of the settings they control.

#### Values

![](https://make.wordpress.org/design/files/2018/12/rangecontrol-field.png)

A range slider with an editable numeric value
A RangeControl with an editable numeric value

**Editable numeric values**: Editable numeric values allow users to set the exact value of a range slider. After setting a value, the thumb position is immediately updated to match the new value.
**Editable numeric values**: Editable numeric values allow users to set the exact value of a RangeControl. After setting a value, the thumb position is immediately updated to match the new value.

![A range slider with only two values](https://make.wordpress.org/design/files/2018/12/rangecontrol-2-values.png)
![A RangeControl with only two values](https://make.wordpress.org/design/files/2018/12/rangecontrol-2-values.png)

**Don’t**
RangeControls should only be used for choosing selections from a range of values (e.g., don’t use a range slider if there are only 2 values).
RangeControls should only be used for choosing selections from a range of values (e.g., don’t use a RangeControl if there are only 2 values).

![](https://make.wordpress.org/design/files/2018/12/rangecontrol-disabled.png)

**Don’t**
Sliders should provide the full range of choices available for the user to select from (e.g., don’t disable only part of a range slider).
RangeControls should provide the full range of choices available for the user to select from (e.g., don’t disable only part of a RangeControl).

## Development guidelines

Expand Down

0 comments on commit 4bd4fcc

Please sign in to comment.