diff --git a/docs/data/material/components/menus/AccountMenu.js b/docs/data/material/components/menus/AccountMenu.js
index 960b8c8fac1c64..a25b819519461d 100644
--- a/docs/data/material/components/menus/AccountMenu.js
+++ b/docs/data/material/components/menus/AccountMenu.js
@@ -33,7 +33,7 @@ export default function AccountMenu() {
sx={{ ml: 2 }}
aria-controls={open ? 'account-menu' : undefined}
aria-haspopup="true"
- aria-expanded={open ? 'true' : undefined}
+ aria-expanded={open}
>
M
diff --git a/docs/data/material/components/menus/AccountMenu.tsx b/docs/data/material/components/menus/AccountMenu.tsx
index 88d1afbb4ec5db..dc5b87f33863e8 100644
--- a/docs/data/material/components/menus/AccountMenu.tsx
+++ b/docs/data/material/components/menus/AccountMenu.tsx
@@ -33,7 +33,7 @@ export default function AccountMenu() {
sx={{ ml: 2 }}
aria-controls={open ? 'account-menu' : undefined}
aria-haspopup="true"
- aria-expanded={open ? 'true' : undefined}
+ aria-expanded={open}
>
M
diff --git a/docs/data/material/components/menus/BasicMenu.js b/docs/data/material/components/menus/BasicMenu.js
index 79c918168c1ef5..d76a67c0f37968 100644
--- a/docs/data/material/components/menus/BasicMenu.js
+++ b/docs/data/material/components/menus/BasicMenu.js
@@ -19,7 +19,7 @@ export default function BasicMenu() {
id="basic-button"
aria-controls={open ? 'basic-menu' : undefined}
aria-haspopup="true"
- aria-expanded={open ? 'true' : undefined}
+ aria-expanded={open}
onClick={handleClick}
>
Dashboard
diff --git a/docs/data/material/components/menus/BasicMenu.tsx b/docs/data/material/components/menus/BasicMenu.tsx
index 62823aa4313551..39bc89d11e696e 100644
--- a/docs/data/material/components/menus/BasicMenu.tsx
+++ b/docs/data/material/components/menus/BasicMenu.tsx
@@ -19,7 +19,7 @@ export default function BasicMenu() {
id="basic-button"
aria-controls={open ? 'basic-menu' : undefined}
aria-haspopup="true"
- aria-expanded={open ? 'true' : undefined}
+ aria-expanded={open}
onClick={handleClick}
>
Dashboard
diff --git a/docs/data/material/components/menus/CustomizedMenus.js b/docs/data/material/components/menus/CustomizedMenus.js
index a3bb8d6bc19c45..4cbae94457099d 100644
--- a/docs/data/material/components/menus/CustomizedMenus.js
+++ b/docs/data/material/components/menus/CustomizedMenus.js
@@ -72,7 +72,7 @@ export default function CustomizedMenus() {
id="demo-customized-button"
aria-controls={open ? 'demo-customized-menu' : undefined}
aria-haspopup="true"
- aria-expanded={open ? 'true' : undefined}
+ aria-expanded={open}
variant="contained"
disableElevation
onClick={handleClick}
diff --git a/docs/data/material/components/menus/CustomizedMenus.tsx b/docs/data/material/components/menus/CustomizedMenus.tsx
index 1f29a6689f1067..46a8823ffc118c 100644
--- a/docs/data/material/components/menus/CustomizedMenus.tsx
+++ b/docs/data/material/components/menus/CustomizedMenus.tsx
@@ -72,7 +72,7 @@ export default function CustomizedMenus() {
id="demo-customized-button"
aria-controls={open ? 'demo-customized-menu' : undefined}
aria-haspopup="true"
- aria-expanded={open ? 'true' : undefined}
+ aria-expanded={open}
variant="contained"
disableElevation
onClick={handleClick}
diff --git a/docs/data/material/components/menus/FadeMenu.js b/docs/data/material/components/menus/FadeMenu.js
index 8ccaaee9297270..549b30995aae68 100644
--- a/docs/data/material/components/menus/FadeMenu.js
+++ b/docs/data/material/components/menus/FadeMenu.js
@@ -20,7 +20,7 @@ export default function FadeMenu() {
id="fade-button"
aria-controls={open ? 'fade-menu' : undefined}
aria-haspopup="true"
- aria-expanded={open ? 'true' : undefined}
+ aria-expanded={open}
onClick={handleClick}
>
Dashboard
diff --git a/docs/data/material/components/menus/FadeMenu.tsx b/docs/data/material/components/menus/FadeMenu.tsx
index ab2fc4e94ab32e..7a0655425bbb67 100644
--- a/docs/data/material/components/menus/FadeMenu.tsx
+++ b/docs/data/material/components/menus/FadeMenu.tsx
@@ -20,7 +20,7 @@ export default function FadeMenu() {
id="fade-button"
aria-controls={open ? 'fade-menu' : undefined}
aria-haspopup="true"
- aria-expanded={open ? 'true' : undefined}
+ aria-expanded={open}
onClick={handleClick}
>
Dashboard
diff --git a/docs/data/material/components/menus/GroupedMenu.js b/docs/data/material/components/menus/GroupedMenu.js
index 23106a07297434..1c71a0cf8ca86a 100644
--- a/docs/data/material/components/menus/GroupedMenu.js
+++ b/docs/data/material/components/menus/GroupedMenu.js
@@ -25,7 +25,7 @@ export default function GroupedMenu() {
id="basic-button"
aria-controls={open ? 'grouped-menu' : undefined}
aria-haspopup="true"
- aria-expanded={open ? 'true' : undefined}
+ aria-expanded={open}
onClick={handleClick}
>
Dashboard
diff --git a/docs/data/material/components/menus/GroupedMenu.tsx b/docs/data/material/components/menus/GroupedMenu.tsx
index f76e923ab4417e..3ea0df64f1ede7 100644
--- a/docs/data/material/components/menus/GroupedMenu.tsx
+++ b/docs/data/material/components/menus/GroupedMenu.tsx
@@ -25,7 +25,7 @@ export default function GroupedMenu() {
id="basic-button"
aria-controls={open ? 'grouped-menu' : undefined}
aria-haspopup="true"
- aria-expanded={open ? 'true' : undefined}
+ aria-expanded={open}
onClick={handleClick}
>
Dashboard
diff --git a/docs/data/material/components/menus/LongMenu.js b/docs/data/material/components/menus/LongMenu.js
index 8ff2839531f934..5bb73eed149cb6 100644
--- a/docs/data/material/components/menus/LongMenu.js
+++ b/docs/data/material/components/menus/LongMenu.js
@@ -39,7 +39,7 @@ export default function LongMenu() {
aria-label="more"
id="long-button"
aria-controls={open ? 'long-menu' : undefined}
- aria-expanded={open ? 'true' : undefined}
+ aria-expanded={open}
aria-haspopup="true"
onClick={handleClick}
>
diff --git a/docs/data/material/components/menus/LongMenu.tsx b/docs/data/material/components/menus/LongMenu.tsx
index 116012fd8e1f23..6b203951b684f5 100644
--- a/docs/data/material/components/menus/LongMenu.tsx
+++ b/docs/data/material/components/menus/LongMenu.tsx
@@ -39,7 +39,7 @@ export default function LongMenu() {
aria-label="more"
id="long-button"
aria-controls={open ? 'long-menu' : undefined}
- aria-expanded={open ? 'true' : undefined}
+ aria-expanded={open}
aria-haspopup="true"
onClick={handleClick}
>
diff --git a/docs/data/material/components/menus/MenuListComposition.js b/docs/data/material/components/menus/MenuListComposition.js
index a5b1eef574463e..e07381c3336d2e 100644
--- a/docs/data/material/components/menus/MenuListComposition.js
+++ b/docs/data/material/components/menus/MenuListComposition.js
@@ -57,7 +57,7 @@ export default function MenuListComposition() {
ref={anchorRef}
id="composition-button"
aria-controls={open ? 'composition-menu' : undefined}
- aria-expanded={open ? 'true' : undefined}
+ aria-expanded={open}
aria-haspopup="true"
onClick={handleToggle}
>
diff --git a/docs/data/material/components/menus/MenuListComposition.tsx b/docs/data/material/components/menus/MenuListComposition.tsx
index a6ac81cb67384d..b90632cac28cd5 100644
--- a/docs/data/material/components/menus/MenuListComposition.tsx
+++ b/docs/data/material/components/menus/MenuListComposition.tsx
@@ -60,7 +60,7 @@ export default function MenuListComposition() {
ref={anchorRef}
id="composition-button"
aria-controls={open ? 'composition-menu' : undefined}
- aria-expanded={open ? 'true' : undefined}
+ aria-expanded={open}
aria-haspopup="true"
onClick={handleToggle}
>
diff --git a/docs/data/material/components/menus/PositionedMenu.js b/docs/data/material/components/menus/PositionedMenu.js
index 557cf86afe3e87..d664cec05e5737 100644
--- a/docs/data/material/components/menus/PositionedMenu.js
+++ b/docs/data/material/components/menus/PositionedMenu.js
@@ -19,7 +19,7 @@ export default function PositionedMenu() {
id="demo-positioned-button"
aria-controls={open ? 'demo-positioned-menu' : undefined}
aria-haspopup="true"
- aria-expanded={open ? 'true' : undefined}
+ aria-expanded={open}
onClick={handleClick}
>
Dashboard
diff --git a/docs/data/material/components/menus/PositionedMenu.tsx b/docs/data/material/components/menus/PositionedMenu.tsx
index fdafa5b55c705f..5a2e9d903f2ef5 100644
--- a/docs/data/material/components/menus/PositionedMenu.tsx
+++ b/docs/data/material/components/menus/PositionedMenu.tsx
@@ -19,7 +19,7 @@ export default function PositionedMenu() {
id="demo-positioned-button"
aria-controls={open ? 'demo-positioned-menu' : undefined}
aria-haspopup="true"
- aria-expanded={open ? 'true' : undefined}
+ aria-expanded={open}
onClick={handleClick}
>
Dashboard
diff --git a/docs/data/material/components/menus/SimpleListMenu.js b/docs/data/material/components/menus/SimpleListMenu.js
index 2494052f922c7c..32931375e5aa35 100644
--- a/docs/data/material/components/menus/SimpleListMenu.js
+++ b/docs/data/material/components/menus/SimpleListMenu.js
@@ -41,7 +41,7 @@ export default function SimpleListMenu() {
aria-haspopup="listbox"
aria-controls="lock-menu"
aria-label="when device is locked"
- aria-expanded={open ? 'true' : undefined}
+ aria-expanded={open}
onClick={handleClickListItem}
>