Skip to content

Commit

Permalink
fix: improve readonly invalid input container styles (#7204)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Mar 14, 2024
1 parent d0f0c6e commit 1875686
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 1875686

Please sign in to comment.