Skip to content

Commit

Permalink
Updated Carousel attribute ordering.
Browse files Browse the repository at this point in the history
  • Loading branch information
karatechops committed Oct 3, 2016
1 parent 8c70e66 commit 6724ea8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/js/components/Carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,10 @@ export default class Carousel extends Component {

const carouselMessage = a11yTitle || Intl.getMessage(intl, 'Carousel');
return (
<div ref={ref => this.carouselRef = ref} className={classes}
role='group' aria-label={carouselMessage}
<div ref={ref => this.carouselRef = ref} {...restProps}
className={classes} role='group' aria-label={carouselMessage}
onFocus={this._stopAutoplay} onBlur={this._startAutoplay}
onMouseOver={this._stopAutoplay} onMouseOut={this._startAutoplay}
{...restProps}>
onMouseOver={this._stopAutoplay} onMouseOut={this._startAutoplay}>
<div className={`${CLASS_ROOT}__track`}
style={{
width: (trackWidth && trackWidth > 0) ? trackWidth : '',
Expand Down

0 comments on commit 6724ea8

Please sign in to comment.