Skip to content

Commit

Permalink
fix: use correct focused readonly checkbox group label styles (#7776) (
Browse files Browse the repository at this point in the history
…#7787)

Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
  • Loading branch information
vaadin-bot and web-padawan committed Sep 10, 2024
1 parent 91bc69d commit cdfa319
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ describe('checkbox-group', () => {
await visualDiff(div, 'label-focused');
});

it('label focused readonly', async () => {
element.label = 'Label';
element.readonly = true;
await sendKeys({ press: 'Tab' });
await visualDiff(div, 'label-focused-readonly');
});

it('label disabled', async () => {
element.label = 'Label';
element.disabled = true;
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 @@ -35,7 +35,7 @@ const checkboxGroup = css`
-webkit-text-fill-color: var(--lumo-disabled-text-color);
}
:host([focused]:not([disabled])) [part='label'] {
:host([focused]:not([readonly])) [part='label'] {
color: var(--lumo-primary-text-color);
}
Expand Down

0 comments on commit cdfa319

Please sign in to comment.