diff --git a/src/Alert.js b/src/Alert.js index 419b1e6613..4d22b6efe9 100644 --- a/src/Alert.js +++ b/src/Alert.js @@ -7,13 +7,15 @@ const Alert = React.createClass({ propTypes: { onDismiss: React.PropTypes.func, - dismissAfter: React.PropTypes.number + dismissAfter: React.PropTypes.number, + closeLabel: React.PropTypes.string }, getDefaultProps() { return { bsClass: 'alert', - bsStyle: 'info' + bsStyle: 'info', + closeLabel: 'Close Alert' }; }, @@ -22,9 +24,9 @@ const Alert = React.createClass({ ); }, @@ -36,7 +38,7 @@ const Alert = React.createClass({ classes['alert-dismissable'] = isDismissable; return ( -
+
{isDismissable ? this.renderDismissButton() : null} {this.props.children}
diff --git a/src/Nav.js b/src/Nav.js index ed3b0d2ac9..d4873cc2b4 100644 --- a/src/Nav.js +++ b/src/Nav.js @@ -52,7 +52,7 @@ const Nav = React.createClass({ return ( ); }, @@ -67,7 +67,11 @@ const Nav = React.createClass({ classes['navbar-right'] = this.props.right; return ( -