@canonical/react-components 3.12.4 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -120,6 +120,7 @@ const generateLink = (link, key, handleClose) => {
|
|
|
120
120
|
return /*#__PURE__*/_react.default.createElement(_Button.default, _extends({
|
|
121
121
|
className: (0, _classnames.default)("p-contextual-menu__link", className),
|
|
122
122
|
key: key,
|
|
123
|
+
role: "menuitem",
|
|
123
124
|
onClick: onClick ? evt => {
|
|
124
125
|
handleClose(evt.nativeEvent);
|
|
125
126
|
onClick(evt);
|
|
@@ -114,6 +114,7 @@ var generateLink = (link, key, handleClose) => {
|
|
|
114
114
|
return /*#__PURE__*/React.createElement(Button, _extends({
|
|
115
115
|
className: classNames("p-contextual-menu__link", className),
|
|
116
116
|
key: key,
|
|
117
|
+
role: "menuitem",
|
|
117
118
|
onClick: onClick ? evt => {
|
|
118
119
|
handleClose(evt.nativeEvent);
|
|
119
120
|
onClick(evt);
|