mirror of
https://github.com/bitwarden/browser
synced 2026-02-11 22:13:32 +00:00
checkbox improvements
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user