Bug 1428433 - added role 'presentation' to shared component elements that do not have any semantics. r=Honza

MozReview-Commit-ID: 6HMgKzMgk2k
This commit is contained in:
Yura Zenevich 2018-02-15 09:46:42 -05:00
parent f5a810e2ab
commit d14436478f
2 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,7 @@ class Draggable extends Component {
render() { render() {
return dom.div({ return dom.div({
role: "presentation",
style: this.props.style, style: this.props.style,
className: this.props.className, className: this.props.className,
onMouseDown: this.startDragging onMouseDown: this.startDragging

View File

@ -225,6 +225,7 @@ class SplitBox extends Component {
dom.div({ dom.div({
className: endPanelControl ? "uncontrolled" : "controlled", className: endPanelControl ? "uncontrolled" : "controlled",
style: leftPanelStyle, style: leftPanelStyle,
role: "presentation",
ref: div => { ref: div => {
this.startPanelContainer = div; this.startPanelContainer = div;
}}, }},
@ -242,6 +243,7 @@ class SplitBox extends Component {
dom.div({ dom.div({
className: endPanelControl ? "controlled" : "uncontrolled", className: endPanelControl ? "controlled" : "uncontrolled",
style: rightPanelStyle, style: rightPanelStyle,
role: "presentation",
ref: div => { ref: div => {
this.endPanelContainer = div; this.endPanelContainer = div;
}}, }},