From 100a0c54bcfdb06a92df0d06592acada64042144 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Tue, 21 Feb 2023 22:32:52 +0100 Subject: [PATCH] [TextField] Fix floating label positon --- packages/mui-material/src/OutlinedInput/OutlinedInput.js | 2 +- packages/mui-material/src/OutlinedInput/OutlinedInput.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mui-material/src/OutlinedInput/OutlinedInput.js b/packages/mui-material/src/OutlinedInput/OutlinedInput.js index ed8e6bc3945920..9209682528e353 100644 --- a/packages/mui-material/src/OutlinedInput/OutlinedInput.js +++ b/packages/mui-material/src/OutlinedInput/OutlinedInput.js @@ -184,7 +184,7 @@ const OutlinedInput = React.forwardRef(function OutlinedInput(inProps, ref) { label != null && label !== '' && fcs.required ? ( {label} -  {'*'} +  {'*'} ) : ( label diff --git a/packages/mui-material/src/OutlinedInput/OutlinedInput.test.js b/packages/mui-material/src/OutlinedInput/OutlinedInput.test.js index a40db53e4cc589..cbca44086563f3 100644 --- a/packages/mui-material/src/OutlinedInput/OutlinedInput.test.js +++ b/packages/mui-material/src/OutlinedInput/OutlinedInput.test.js @@ -47,7 +47,7 @@ describe('', () => { />, ); const notchOutlined = container.querySelector('.notched-outlined legend'); - expect(notchOutlined).to.have.text('label\xa0*'); + expect(notchOutlined).to.have.text('label\u2009*'); }); it('should forward classes to InputBase', () => {