@okta/odyssey-react-mui 1.13.7 → 1.13.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okta/odyssey-react-mui",
3
- "version": "1.13.7",
3
+ "version": "1.13.9",
4
4
  "description": "React MUI components for Odyssey, Okta's design system",
5
5
  "author": "Okta, Inc.",
6
6
  "license": "Apache-2.0",
@@ -51,7 +51,7 @@
51
51
  "@mui/system": "^5.14.9",
52
52
  "@mui/utils": "^5.11.2",
53
53
  "@mui/x-date-pickers": "^5.0.15",
54
- "@okta/odyssey-design-tokens": "1.13.7",
54
+ "@okta/odyssey-design-tokens": "1.13.9",
55
55
  "date-fns": "^2.30.0",
56
56
  "i18next": "^23.5.1",
57
57
  "material-react-table": "^2.0.2",
@@ -63,5 +63,5 @@
63
63
  "react": ">=17 <19",
64
64
  "react-dom": ">=17 <19"
65
65
  },
66
- "gitHead": "30c72beca0bda76f3872f13621c5e27407bebcc4"
66
+ "gitHead": "c2ab862795fbdc1c11b7b3bb4118a7ed24600843"
67
67
  }
package/src/Accordion.tsx CHANGED
@@ -35,10 +35,6 @@ export type AccordionProps = {
35
35
  * The label text for the AccordionSummary
36
36
  */
37
37
  label: string;
38
- /**
39
- * If true, the Accordion item will have a shadow.
40
- */
41
- hasShadow?: boolean;
42
38
  /**
43
39
  * Whether the item is expanded by default
44
40
  */
@@ -70,7 +66,6 @@ export type AccordionProps = {
70
66
  const Accordion = ({
71
67
  children,
72
68
  label,
73
- hasShadow = true,
74
69
  id: idOverride,
75
70
  isDefaultExpanded,
76
71
  isDisabled,
@@ -88,7 +83,6 @@ const Accordion = ({
88
83
  disableGutters
89
84
  expanded={isExpanded}
90
85
  onChange={onChange}
91
- className={hasShadow ? `hasShadow` : undefined}
92
86
  >
93
87
  <MuiAccordionSummary
94
88
  aria-controls={contentId}
package/src/Button.tsx CHANGED
@@ -132,7 +132,10 @@ export type ButtonProps = {
132
132
  HtmlProps;
133
133
 
134
134
  const Button = ({
135
+ ariaControls,
135
136
  ariaDescribedBy,
137
+ ariaExpanded,
138
+ ariaHasPopup,
136
139
  ariaLabel,
137
140
  ariaLabelledBy,
138
141
  buttonRef,
@@ -177,9 +180,12 @@ const Button = ({
177
180
  return (
178
181
  <MuiButton
179
182
  {...muiProps}
183
+ aria-controls={ariaControls}
184
+ aria-describedby={ariaDescribedBy}
185
+ aria-expanded={ariaExpanded}
186
+ aria-haspopup={ariaHasPopup}
180
187
  aria-label={ariaLabel}
181
188
  aria-labelledby={ariaLabelledBy}
182
- aria-describedby={ariaDescribedBy}
183
189
  data-se={testId}
184
190
  disabled={isDisabled}
185
191
  endIcon={endIcon}
@@ -199,7 +205,10 @@ const Button = ({
199
205
  );
200
206
  },
201
207
  [
208
+ ariaControls,
202
209
  ariaDescribedBy,
210
+ ariaExpanded,
211
+ ariaHasPopup,
203
212
  ariaLabel,
204
213
  ariaLabelledBy,
205
214
  endIcon,
@@ -62,15 +62,13 @@ export const components = ({
62
62
  styleOverrides: {
63
63
  root: () => ({
64
64
  backgroundColor: odysseyTokens.HueNeutralWhite,
65
- borderWidth: 1,
66
- borderInlineStyle: "solid",
67
- borderColor: odysseyTokens.HueNeutral100,
65
+ border: 0,
66
+ borderBottomColor: odysseyTokens.BorderColorDisplay,
67
+ borderBottomStyle: "solid",
68
+ borderBottomWidth: odysseyTokens.BorderWidthMain,
69
+ borderRadius: 0,
68
70
  boxShadow: "none",
69
71
 
70
- "&.hasShadow": {
71
- boxShadow: odysseyTokens.DepthLow,
72
- },
73
-
74
72
  "&.Mui-disabled": {
75
73
  backgroundColor: odysseyTokens.HueNeutralWhite,
76
74
  color: odysseyTokens.TypographyColorDisabled,
@@ -81,21 +79,18 @@ export const components = ({
81
79
  },
82
80
  },
83
81
 
84
- "&::before": {
85
- backgroundColor: odysseyTokens.BorderColorDisplay,
86
- opacity: "1 !important",
87
- },
88
-
89
82
  "&:first-of-type": {
90
- borderTopLeftRadius: odysseyTokens.BorderRadiusMain,
91
- borderTopRightRadius: odysseyTokens.BorderRadiusMain,
92
- borderBlockStartStyle: "solid",
83
+ borderRadius: 0,
84
+ borderTopColor: odysseyTokens.BorderColorDisplay,
85
+ borderTopStyle: "solid",
86
+ borderTopWidth: odysseyTokens.BorderWidthMain,
93
87
  },
94
88
 
95
89
  "&:last-of-type": {
96
- borderBottomLeftRadius: odysseyTokens.BorderRadiusMain,
97
- borderBottomRightRadius: odysseyTokens.BorderRadiusMain,
98
- borderBlockEndStyle: "solid",
90
+ borderRadius: 0,
91
+ borderBottomColor: odysseyTokens.BorderColorDisplay,
92
+ borderBottomStyle: "solid",
93
+ borderBottomWidth: odysseyTokens.BorderWidthMain,
99
94
  },
100
95
  }),
101
96
  },
@@ -106,26 +101,12 @@ export const components = ({
106
101
  paddingBlock: odysseyTokens.Spacing4,
107
102
  paddingInline: odysseyTokens.Spacing3,
108
103
 
109
- ".MuiAccordion-root:first-of-type &": {
110
- borderTopLeftRadius: odysseyTokens.BorderRadiusMain,
111
- borderTopRightRadius: odysseyTokens.BorderRadiusMain,
112
- },
113
-
114
- ".MuiAccordion-root:last-of-type &": {
115
- borderBottomLeftRadius: odysseyTokens.BorderRadiusMain,
116
- borderBottomRightRadius: odysseyTokens.BorderRadiusMain,
117
- },
118
-
119
- ".MuiAccordion-root.Mui-expanded &": {
120
- borderBottomLeftRadius: 0,
121
- borderBottomRightRadius: 0,
122
- },
123
-
124
- "&:hover, &:focus": {
104
+ "&:hover": {
125
105
  backgroundColor: odysseyTokens.HueNeutral50,
126
106
  },
127
107
 
128
108
  "&:focus-visible": {
109
+ backgroundColor: odysseyTokens.HueNeutral50,
129
110
  outlineColor: odysseyTokens.PalettePrimaryMain,
130
111
  outlineWidth: 2,
131
112
  outlineStyle: "solid",