Skip to content

Commit adad32e

Browse files
Kenny Wangmatt-royal
Kenny Wang
authored andcommittedAug 21, 2015
[added] PropType validation for headerRole and panelRole
Signed-off-by: Dominick Reinhold <[email protected]> Signed-off-by: Matt Royal <[email protected]>
1 parent 769781d commit adad32e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎src/Panel.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ const Panel = React.createClass({
1515
footer: React.PropTypes.node,
1616
defaultExpanded: React.PropTypes.bool,
1717
expanded: React.PropTypes.bool,
18-
eventKey: React.PropTypes.any
18+
eventKey: React.PropTypes.any,
19+
headerRole: React.PropTypes.string,
20+
panelRole: React.PropTypes.string
1921
},
2022

2123
getDefaultProps() {
@@ -203,7 +205,7 @@ const Panel = React.createClass({
203205

204206
renderCollapsibleTitle(header, headerRole) {
205207
return (
206-
<h4 className={this.prefixClass('title')}>
208+
<h4 className={this.prefixClass('title')} role="presentation">
207209
{this.renderAnchor(header, headerRole)}
208210
</h4>
209211
);

0 commit comments

Comments
 (0)
Please sign in to comment.