From 5586450a3ad753e87fc0f1f0db4d127b7c0e518e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dudak?= Date: Wed, 13 Mar 2024 12:08:41 +0100 Subject: [PATCH 1/2] [utils] Fix visually hidden styles' margin unit --- packages/mui-utils/src/visuallyHidden/visuallyHidden.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mui-utils/src/visuallyHidden/visuallyHidden.ts b/packages/mui-utils/src/visuallyHidden/visuallyHidden.ts index 5d4145de6911dc..703c335112b678 100644 --- a/packages/mui-utils/src/visuallyHidden/visuallyHidden.ts +++ b/packages/mui-utils/src/visuallyHidden/visuallyHidden.ts @@ -2,7 +2,7 @@ const visuallyHidden: import('react').CSSProperties = { border: 0, clip: 'rect(0 0 0 0)', height: '1px', - margin: -1, + margin: '-1px', overflow: 'hidden', padding: 0, position: 'absolute', From 71b37d659a57af43f8975d78a743f88afe4c25b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dudak?= Date: Wed, 13 Mar 2024 12:23:11 +0100 Subject: [PATCH 2/2] Update tests --- packages/mui-base/src/useSelect/useSelect.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mui-base/src/useSelect/useSelect.test.tsx b/packages/mui-base/src/useSelect/useSelect.test.tsx index 014bbd7f26dd8f..05451e21f309ef 100644 --- a/packages/mui-base/src/useSelect/useSelect.test.tsx +++ b/packages/mui-base/src/useSelect/useSelect.test.tsx @@ -44,7 +44,7 @@ describe('useSelect', () => { border: 0, clip: 'rect(0 0 0 0)', height: '1px', - margin: -1, + margin: '-1px', overflow: 'hidden', padding: 0, position: 'absolute',