svelte-material-ui icon indicating copy to clipboard operation
svelte-material-ui copied to clipboard

Outlined Textfield weird outline when active

Open risalfajar opened this issue 3 years ago • 2 comments

Describe the bug See image below. This only happened to outlined variant.

To Reproduce Steps to reproduce the behavior:

  1. Add outlined textfield
  2. Click it

Code:

<Textfield variant="filled" label="password" bind:value={password} />
<Textfield variant="outlined" bind:value={password} label="Label">
    <HelperText slot="helper">Helper Text</HelperText>
</Textfield>

Expected behavior The outline should displayed correctly.

Screenshots image

Desktop (please complete the following information):

  • OS: Pop OS
  • Browser Brave
  • Version 1.29.76 Chromium: 93.0.4577.58 (Official Build) (64-bit)

risalfajar avatar Sep 03 '21 17:09 risalfajar

It happens the same to me, someone has solved ?

pau13-loop avatar Jul 13 '22 16:07 pau13-loop

Playing with it is quite a pain

The closest solution for global.scss file:

.mdc-notched-outline__leading, .mdc-notched-outline__notch, .mdc-notched-outline__trailing {
  box-sizing: unset;
}

This also not always gives the correct result.

Max-Makhrov avatar Apr 17 '24 07:04 Max-Makhrov