@backstage/plugin-catalog-react 1.1.0 → 1.1.1-next.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @backstage/plugin-catalog-react
2
2
 
3
+ ## 1.1.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 1f70704580: Accessibility updates:
8
+
9
+ - Wrapped the `EntityLifecyclePicker`, `EntityOwnerPicker`, `EntityTagPicker`, in `label` elements
10
+ - Changed group name `Typography` component to `span` (from default `h6`), added `aria-label` to the `List` component, and `role` of `menuitem` to the container of the `MenuItem` component
11
+
12
+ - Updated dependencies
13
+ - @backstage/core-components@0.9.5-next.0
14
+ - @backstage/integration@1.2.1-next.0
15
+
3
16
  ## 1.1.0
4
17
 
5
18
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-react",
3
- "version": "1.1.0",
3
+ "version": "1.1.1-next.0",
4
4
  "main": "../dist/index.esm.js",
5
5
  "types": "../dist/index.alpha.d.ts"
6
6
  }
package/dist/index.esm.js CHANGED
@@ -728,9 +728,9 @@ const EntityLifecyclePicker = () => {
728
728
  pb: 1,
729
729
  pt: 1
730
730
  }, /* @__PURE__ */ React.createElement(Typography, {
731
- variant: "button"
732
- }, "Lifecycle"), /* @__PURE__ */ React.createElement(Autocomplete, {
733
- "aria-label": "Lifecycle",
731
+ variant: "button",
732
+ component: "label"
733
+ }, "Lifecycle", /* @__PURE__ */ React.createElement(Autocomplete, {
734
734
  multiple: true,
735
735
  options: availableLifecycles,
736
736
  value: selectedLifecycles,
@@ -752,7 +752,7 @@ const EntityLifecyclePicker = () => {
752
752
  className: classes.input,
753
753
  variant: "outlined"
754
754
  })
755
- }));
755
+ })));
756
756
  };
757
757
 
758
758
  const useStyles$a = makeStyles({
@@ -796,10 +796,10 @@ const EntityOwnerPicker = () => {
796
796
  pb: 1,
797
797
  pt: 1
798
798
  }, /* @__PURE__ */ React.createElement(Typography, {
799
- variant: "button"
800
- }, "Owner"), /* @__PURE__ */ React.createElement(Autocomplete, {
799
+ variant: "button",
800
+ component: "label"
801
+ }, "Owner", /* @__PURE__ */ React.createElement(Autocomplete, {
801
802
  multiple: true,
802
- "aria-label": "Owner",
803
803
  options: availableOwners,
804
804
  value: selectedOwners,
805
805
  onChange: (_, value) => setSelectedOwners(value),
@@ -820,7 +820,7 @@ const EntityOwnerPicker = () => {
820
820
  className: classes.input,
821
821
  variant: "outlined"
822
822
  })
823
- }));
823
+ })));
824
824
  };
825
825
 
826
826
  const useStyles$9 = makeStyles((_theme) => ({
@@ -1080,10 +1080,10 @@ const EntityTagPicker = () => {
1080
1080
  pb: 1,
1081
1081
  pt: 1
1082
1082
  }, /* @__PURE__ */ React.createElement(Typography, {
1083
- variant: "button"
1084
- }, "Tags"), /* @__PURE__ */ React.createElement(Autocomplete, {
1083
+ variant: "button",
1084
+ component: "label"
1085
+ }, "Tags", /* @__PURE__ */ React.createElement(Autocomplete, {
1085
1086
  multiple: true,
1086
- "aria-label": "Tags",
1087
1087
  options: availableTags,
1088
1088
  value: selectedTags,
1089
1089
  onChange: (_, value) => setSelectedTags(value),
@@ -1104,7 +1104,7 @@ const EntityTagPicker = () => {
1104
1104
  className: classes.input,
1105
1105
  variant: "outlined"
1106
1106
  })
1107
- }));
1107
+ })));
1108
1108
  };
1109
1109
 
1110
1110
  const EntityTypePicker = (props) => {
@@ -2032,16 +2032,19 @@ const UserListPicker = (props) => {
2032
2032
  key: group.name
2033
2033
  }, /* @__PURE__ */ React.createElement(Typography, {
2034
2034
  variant: "subtitle2",
2035
+ component: "span",
2035
2036
  className: classes.title
2036
2037
  }, group.name), /* @__PURE__ */ React.createElement(Card, {
2037
2038
  className: classes.groupWrapper
2038
2039
  }, /* @__PURE__ */ React.createElement(List, {
2039
2040
  disablePadding: true,
2040
2041
  dense: true,
2041
- role: "menu"
2042
+ role: "menu",
2043
+ "aria-label": group.name
2042
2044
  }, group.items.map((item) => {
2043
2045
  var _a2, _b;
2044
2046
  return /* @__PURE__ */ React.createElement(MenuItem, {
2047
+ role: "none presentation",
2045
2048
  key: item.id,
2046
2049
  button: true,
2047
2050
  divider: true,
@@ -2050,14 +2053,15 @@ const UserListPicker = (props) => {
2050
2053
  className: classes.menuItem,
2051
2054
  disabled: filterCounts[item.id] === 0,
2052
2055
  "data-testid": `user-picker-${item.id}`,
2053
- tabIndex: 0
2056
+ tabIndex: 0,
2057
+ ContainerProps: { role: "menuitem" }
2054
2058
  }, item.icon && /* @__PURE__ */ React.createElement(ListItemIcon, {
2055
2059
  className: classes.listIcon
2056
2060
  }, /* @__PURE__ */ React.createElement(item.icon, {
2057
2061
  fontSize: "small"
2058
2062
  })), /* @__PURE__ */ React.createElement(ListItemText$1, null, /* @__PURE__ */ React.createElement(Typography, {
2059
2063
  variant: "body1"
2060
- }, item.label)), /* @__PURE__ */ React.createElement(ListItemSecondaryAction, null, (_b = filterCounts[item.id]) != null ? _b : "-"));
2064
+ }, item.label, " ")), /* @__PURE__ */ React.createElement(ListItemSecondaryAction, null, (_b = filterCounts[item.id]) != null ? _b : "-"));
2061
2065
  }))))));
2062
2066
  };
2063
2067