Skip to content

Commit

Permalink
fix: aria-live bug and elements update
Browse files Browse the repository at this point in the history
  • Loading branch information
mhomolak committed Feb 20, 2017
1 parent ab11ad0 commit 4823c86
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"json-loader": "~0.5.4",
"mocha": "~2.4.5",
"node-sass": "~3.7.0",
"pearson-elements": "^1.1.0",
"pearson-elements": "^1.5.0",
"react": "^15.0.0",
"react-addons-test-utils": "^15.0.0",
"react-dom": "^15.0.0",
Expand Down
1 change: 0 additions & 1 deletion src/js/Alert.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { Component } from 'react';
import Icon from './Icon';


class Alert extends Component {

render () {
Expand Down
1 change: 1 addition & 0 deletions src/js/AlertList.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class AlertList extends Component {
<div role="alert">
<ReactCSSTransitionGroup
component="ul"
aria-live="polite"
transitionName="transition"
transitionEnterTimeout={300}
transitionLeaveTimeout={200}
Expand Down
4 changes: 1 addition & 3 deletions src/js/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ const Icon = (props) => {

return (
<svg version = "1.1"
xmlns = "http://www.w3.org/2000/svg"
xmlnsXlink = "http://www.w3.org/1999/xlink"
aria-hidden = "true"
focusable = "no"
focusable = "false"
className = {icon_class}>
<use xlinkHref = {'#' + props.name}></use>
</svg>
Expand Down

0 comments on commit 4823c86

Please sign in to comment.