Skip to content

Commit

Permalink
[TextField] Fix floating label positon
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Feb 21, 2023
1 parent 17f9fc6 commit 100a0c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/mui-material/src/OutlinedInput/OutlinedInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ const OutlinedInput = React.forwardRef(function OutlinedInput(inProps, ref) {
label != null && label !== '' && fcs.required ? (
<React.Fragment>
{label}
&nbsp;{'*'}
&thinsp;{'*'}
</React.Fragment>
) : (
label
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('<OutlinedInput />', () => {
/>,
);
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', () => {
Expand Down

0 comments on commit 100a0c5

Please sign in to comment.