Skip to content

Commit

Permalink
fix: improve readonly invalid input container styles (#7204) (#7209)
Browse files Browse the repository at this point in the history
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
  • Loading branch information
vaadin-bot and web-padawan committed Mar 14, 2024
1 parent b08ab64 commit e258af3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ describe('input-container', () => {
await visualDiff(div, 'invalid');
});

it('readonly invalid', async () => {
element.readonly = true;
element.invalid = true;
await visualDiff(div, 'readonly-invalid');
});

it('prefix icon', async () => {
const icon = document.createElement('vaadin-icon');
icon.setAttribute('slot', 'prefix');
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ registerStyles(
background: var(--_invalid-background);
}
:host([invalid])::after {
:host([invalid]:not([readonly]))::after {
background: var(--_invalid-hover-highlight);
}
Expand Down

0 comments on commit e258af3

Please sign in to comment.