Missing error indicator for checkboxes (Valo theme)
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 717
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 3
Description
- Vaadin version: 8.0.4
There is no error indicator for checkboxes except the exclamation mark. there should be a background color change and even a border color change like textfeld. i did it as a workaround like this:
`@mixin valo-checkbox ($primary-stylename: v-checkbox, $include-additional-styles: contains($v-included-additional-styles, checkbox)) {
.#{$primary-stylename} {
@include valo-checkbox-style;
}
.#{$primary-stylename}-error {
> input ~ label:before {
border-style: dashed !important;
border-color: $v-error-indicator-color !important;
$bg: scale-color($v-error-indicator-color, $lightness: 98%);
background: $bg !important;
color: valo-font-color($bg);
}
}
@if $include-additional-styles {
.#{$primary-stylename}-small {
@include valo-checkbox-style($unit-size: $v-unit-size--small);
font-size: $v-font-size--small;
}
.#{$primary-stylename}-large {
@include valo-checkbox-style($unit-size: $v-unit-size--large);
font-size: $v-font-size--large;
}
}
}
`
so if you set the checkbox as required and validate it, there should be a red border and a very light red background.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Valo theme's checkbox styling and compare it with the text field error styling described in the issue and workaround. Verify that a required checkbox in a validation error state shows a red border and a very light red background, in addition to the existing indicator.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scss
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100