Skip to content

Commit

Permalink
Make the color picker saturation control work with windows screen rea…
Browse files Browse the repository at this point in the history
…ders. (WordPress#10807)
  • Loading branch information
afercia authored and antpb committed Oct 26, 2018
1 parent db919fc commit cec68e7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/components/src/color-picker/saturation.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export class Saturation extends Component {
home: () => this.saturate( -1 ),
};

/* eslint-disable jsx-a11y/no-static-element-interactions */
/* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/no-noninteractive-element-interactions */
return (
<KeyboardShortcuts shortcuts={ shortcuts }>
<div
Expand All @@ -159,7 +159,9 @@ export class Saturation extends Component {
ref={ this.container }
onMouseDown={ this.handleMouseDown }
onTouchMove={ this.handleChange }
onTouchStart={ this.handleChange }>
onTouchStart={ this.handleChange }
role="application"
>
<div className="components-color-picker__saturation-white" />
<div className="components-color-picker__saturation-black" />
<button
Expand All @@ -179,7 +181,7 @@ export class Saturation extends Component {
</div>
</KeyboardShortcuts>
);
/* eslint-enable jsx-a11y/no-static-element-interactions */
/* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/no-noninteractive-element-interactions */
}
}

Expand Down

0 comments on commit cec68e7

Please sign in to comment.