Skip to content

Commit

Permalink
docs: Removing ariaLabel from ariaLabelledBy examples and htmlFor dec…
Browse files Browse the repository at this point in the history
…larations
  • Loading branch information
olliecurtis authored and stonebk committed May 18, 2021
1 parent 5c97326 commit 5fbc3de
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/ReactSlider/ReactSlider.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ Single slider, applying `ariaLabelledby` to establish association with a label

```jsx
<div>
<label id="slider-label" htmlFor="slider">
<label id="slider-label">
React Slider example
</label>
<ReactSlider
Expand All @@ -272,18 +272,17 @@ Double slider, applying `ariaLabelledby` as an array to multiple thumb labels

```jsx
<div>
<label id="first-slider-label" htmlFor="slider">
<label id="first-slider-label">
Start slider label
</label>
<label id="second-slider-label" htmlFor="slider">
<label id="second-slider-label">
End slider label
</label>
<ReactSlider
className="horizontal-slider"
thumbClassName="example-thumb"
trackClassName="example-track"
defaultValue={[0, 100]}
ariaLabel={['Lower thumb', 'Upper thumb']}
ariaLabelledby={['first-slider-label', 'second-slider-label']}
ariaValuetext={state => `Thumb value ${state.valueNow}`}
renderThumb={(props, state) => <div {...props}>{state.valueNow}</div>}
Expand Down

0 comments on commit 5fbc3de

Please sign in to comment.