-
Notifications
You must be signed in to change notification settings - Fork 86
refactor!: Checkbox, Checkbox Group and Radio Button Group base styles #9154
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
base: base-styles
Are you sure you want to change the base?
Conversation
Going to update the visual tests still. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this needs to be extracted to component-base package, now that Radio Group depends on it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO we can extract this to field-base/styles
and call it something like group-base-styles.js
The part is a `<span>` in some components and a `<div>` in others.
@web-padawan, could you take a look at the tests? I can't figure out why they fail. I get the failure locally as well, but I can reproduce the issue in the dev page. |
We could modify this test to not check for
|
I think that issue was just about importing the Lit version, which includes more CSS than the Polymer version. |
I think it was a similar issue with the tooltip integration test, and I tried updating all the components to the Lit versions that already have base styles. |
Regarding See this commit for a fix (needs to be also applied to RadioGroup in that test): 0458e1d |
|
I assume we should redo these updates on top of |
Checkbox, Checkbox Group and Radio Button Group base styles
Supported custom properties
Checkbox
--vaadin-checkbox-background
--vaadin-checkbox-border-color
--vaadin-checkbox-border-radius
--vaadin-checkbox-border-width
--vaadin-checkbox-color
--vaadin-checkbox-gap
--vaadin-checkbox-label-color
--vaadin-checkbox-label-font-size
--vaadin-checkbox-label-font-weight
--vaadin-checkbox-label-line-height
--vaadin-checkbox-size
--vaadin-checkbox-group-gap
Radio Button
--vaadin-radio-button-background
--vaadin-radio-button-border-color
--vaadin-radio-button-border-radius
--vaadin-radio-button-border-width
--vaadin-radio-button-color
--vaadin-radio-button-gap
--vaadin-radio-button-label-color
--vaadin-radio-button-label-font-size
--vaadin-radio-button-label-font-weight
--vaadin-radio-button-label-line-height
--vaadin-radio-button-size
--vaadin-radio-button-dot-size
--vaadin-radio-button-group-gap