File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ import classNames from 'classnames';
33
44class ModalHeader extends React . Component {
55 render ( ) {
6+ let { 'aria-label' : label , ...props } = this . props ;
7+
68 return (
79 < div
810 { ...this . props }
@@ -11,6 +13,7 @@ class ModalHeader extends React.Component {
1113 < button
1214 type = "button"
1315 className = "close"
16+ aria-label = { label }
1417 onClick = { this . props . onHide } >
1518 < span aria-hidden = "true" >
1619 ×
@@ -28,8 +31,8 @@ ModalHeader.__isModalHeader = true;
2831
2932ModalHeader . propTypes = {
3033 /**
31- * The 'aria-label' attribute is used to define a string that labels the current element .
32- * It is used for Assistive Technology when the label text is not visible on screen .
34+ * The 'aria-label' attribute provides an accessible label for the close button .
35+ * It is used for Assistive Technology when the label text is not readable .
3336 */
3437 'aria-label' : React . PropTypes . string ,
3538
You can’t perform that action at this time.
0 commit comments