-
Notifications
You must be signed in to change notification settings - Fork 83
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
feat: add required, error message and helper text to checkbox #7285
Conversation
5efa7dc
to
868fbc6
Compare
I presume you're referring to the indicator then ending up aligned with the helper's end, rather than the label's end? |
Yes, it already has padding end set to |
:host([dir='rtl'][has-label]) ::slotted(label) { | ||
padding: var(--lumo-space-xs) var(--lumo-space-xs) var(--lumo-space-xs) var(--lumo-space-s); | ||
} | ||
|
||
:host([has-label][required]) ::slotted(label) { | ||
padding-inline-end: var(--lumo-space-m); | ||
} |
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.
Moved RTL style block to make sure required
state overrides padding for it.
2d158f6
to
14d2000
Compare
@@ -61,6 +61,7 @@ export interface CheckboxGroupEventMap extends HTMLElementEventMap, CheckboxGrou | |||
* Attribute | Description | Part name | |||
* --------------------|-------------------------------------------|------------ | |||
* `disabled` | Set when the element is disabled | :host | |||
* `readonly` | Set when the element is readonly | :host |
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.
Missed to include this change to #7199 🙈
7aa942f
to
d394916
Compare
d394916
to
1f2ac02
Compare
Quality Gate passedIssues Measures |
This ticket/PR has been released with Vaadin 24.4.0. |
Description
Fixes #938
Fixes #3749
Type of change
Note
This changes
vaadin-checkbox
to useFieldMixin
which also addsaccessibleName
andaccessibleNameRef
.