Skip to content

Conversation

@web-padawan
Copy link
Member

Description

This fixes a minor issue in vaadin-checkbox-group theme which is currently not aligned with Lumo for other fields:

:host([focused]:not([readonly])) [part='label'] {
color: var(--vaadin-input-field-focused-label-color, var(--lumo-primary-text-color));
}

:host([focused]:not([readonly])) [part='label'] {
color: var(--lumo-primary-text-color);
}

Related styles were initially introduced in vaadin/vaadin-checkbox#149 - back then, there was no readony state in vaadin-checkbox-group and I missed to update them later when adding it for 24.4.

This is how the readonly focused checkbox-group label looks now, compared to readonly focused radio-group:
Screenshot 2024-09-06 at 10 56 03
Screenshot 2024-09-06 at 11 02 51

Note: this is specific to Lumo, as we don't have corresponding styles in Material theme.

Type of change

  • Bugfix

@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 6, 2024

-webkit-text-fill-color: var(--lumo-disabled-text-color);
}
:host([focused]:not([disabled])) [part='label'] {
Copy link
Contributor

Choose a reason for hiding this comment

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

To be sure, this style was not applied anyway because there is no way to focus a disabled checkbox group?

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, exactly. I think adding it to the selector was a mistake.

@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.5.0.beta2 and is also targeting the upcoming stable 24.5.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.

4 participants