Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readonly TextField border dimension inconsitency #5

Open
mrgreywater opened this issue Jun 13, 2023 · 1 comment
Open

Readonly TextField border dimension inconsitency #5

mrgreywater opened this issue Jun 13, 2023 · 1 comment

Comments

@mrgreywater
Copy link

mrgreywater commented Jun 13, 2023

The height of the border of a TextField seems to change visually by 2px depending on if the field is readonly or not. A readonly TextField appears smaller which looks weird in a Form. This can be seen in the Parity-Theme Live Demo. The style also doesn't match the GS Design, I think the GS Read Only state behaviour looks worse though. See https://design.gs.com/components/input

image

@mrgreywater
Copy link
Author

mrgreywater commented Jun 15, 2023

Something like this would fix it

*[readonly]::part(input-field) {
    border: 1px dashed var(--lumo-contrast-30pct);
}

::part(input-field)::after {
    border: unset;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant