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

fix: improve readonly invalid input container styles #7204

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

web-padawan
Copy link
Member

Description

Fixes #1196 by applying workaround from #1196 (comment).

Note: when removing readonly there is a short flash. This is a separate issue not specific to invalid state.

Type of change

  • Bugfix

@@ -35,6 +35,12 @@ describe('input-container', () => {
await visualDiff(div, 'invalid');
});

it('readonly invalid', async () => {
element.readonly = true;
element.invalid = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix 👍 would it make sense to add text in the field to ensure that it's readable?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, probably. We don't have visual tests for regular readonly with value. Created an issue: #7207

@web-padawan web-padawan removed the request for review from vursen March 14, 2024 07:21
@web-padawan web-padawan merged commit 1875686 into main Mar 14, 2024
8 checks passed
@web-padawan web-padawan deleted the fix/input-readonly-invalid branch March 14, 2024 07:22
web-padawan added a commit that referenced this pull request Mar 14, 2024
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.4.0.alpha15 and is also targeting the upcoming stable 24.4.0 version.

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

Successfully merging this pull request may close these issues.

[text-field] Invalid readonly text field has too bright background color
4 participants