@@ -913,7 +913,9 @@ module.exports = /******/ (function (modules) {
913913 ButtonComponent = _props4 . ButtonComponent ,
914914 overlay = _props4 . overlay ,
915915 overlayClasses = _props4 . overlayClasses ,
916- overlayStyle = _props4 . overlayStyle ;
916+ overlayStyle = _props4 . overlayStyle ,
917+ ariaAcceptLabel = _props4 . ariaAcceptLabel ,
918+ ariaDeclineLabel = _props4 . ariaDeclineLabel ;
917919
918920 var myStyle = { } ;
919921 var myButtonStyle = { } ;
@@ -970,6 +972,7 @@ module.exports = /******/ (function (modules) {
970972 style : myDeclineButtonStyle ,
971973 className : declineButtonClasses ,
972974 id : declineButtonId ,
975+ "aria-label" : ariaDeclineLabel ,
973976 onClick : function onClick ( ) {
974977 _this2 . decline ( ) ;
975978 } ,
@@ -987,6 +990,7 @@ module.exports = /******/ (function (modules) {
987990 style : myButtonStyle ,
988991 className : buttonClasses ,
989992 id : buttonId ,
993+ "aria-label" : ariaAcceptLabel ,
990994 onClick : function onClick ( ) {
991995 _this2 . accept ( { acceptedByScrolling : false } ) ;
992996 } ,
@@ -1098,6 +1102,8 @@ module.exports = /******/ (function (modules) {
10981102 overlay : _propTypes2 . default . bool ,
10991103 overlayClasses : _propTypes2 . default . string ,
11001104 overlayStyle : _propTypes2 . default . object ,
1105+ ariaAcceptLabel : _propTypes2 . default . string ,
1106+ ariaDeclineLabel : _propTypes2 . default . string ,
11011107 } ;
11021108
11031109 CookieConsent . defaultProps = {
@@ -1137,6 +1143,8 @@ module.exports = /******/ (function (modules) {
11371143 } ,
11381144 overlay : false ,
11391145 overlayClasses : "" ,
1146+ ariaAcceptLabel : "Accept cookies" ,
1147+ ariaDeclineLabel : "Decline cookies" ,
11401148 } ;
11411149
11421150 exports . default = CookieConsent ;
0 commit comments