1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-11 22:13:32 +00:00

checkbox improvements

This commit is contained in:
Vicki League
2025-06-25 17:47:41 -04:00
parent d655f3e507
commit f9b75e02f8
2 changed files with 4 additions and 3 deletions

View File

@@ -90,7 +90,7 @@ export class CheckboxComponent implements BitFormControlAbstraction {
protected indeterminateImage =
`url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="none" viewBox="0 0 13 13"%3E%3Cpath stroke="%23fff" stroke-width="2" d="M2.5 6.5h8"/%3E%3C/svg%3E%0A')`;
// TODO: Skipped for migration because:
// TODO: Skipped for signal migration because:
// Accessor inputs cannot be migrated as they are too complex.
@HostBinding()
@Input()
@@ -102,7 +102,7 @@ export class CheckboxComponent implements BitFormControlAbstraction {
}
private _disabled: boolean;
// TODO: Skipped for migration because:
// TODO: Skipped for signal migration because:
// Accessor inputs cannot be migrated as they are too complex.
@Input()
get required() {

View File

@@ -30,6 +30,7 @@ const template = /*html*/ `
@Component({
selector: "app-example",
template,
imports: [FormControlModule, CheckboxModule, FormsModule, ReactiveFormsModule],
})
class ExampleComponent {
protected formObj = this.formBuilder.group({
@@ -55,7 +56,6 @@ export default {
title: "Component Library/Form/Checkbox",
decorators: [
moduleMetadata({
declarations: [ExampleComponent],
imports: [
FormsModule,
ReactiveFormsModule,
@@ -63,6 +63,7 @@ export default {
CheckboxModule,
TableModule,
BadgeModule,
ExampleComponent,
],
providers: [
{