diff --git a/src/app/components/tristatecheckbox/tristatecheckbox.css b/src/app/components/tristatecheckbox/tristatecheckbox.css new file mode 100644 index 00000000000..11d05e8bd90 --- /dev/null +++ b/src/app/components/tristatecheckbox/tristatecheckbox.css @@ -0,0 +1,5 @@ +@layer primeng { + .p-tristatecheckbox-label { + cursor: pointer; + } +} diff --git a/src/app/components/tristatecheckbox/tristatecheckbox.ts b/src/app/components/tristatecheckbox/tristatecheckbox.ts index de25abd47a1..3bf242d4875 100755 --- a/src/app/components/tristatecheckbox/tristatecheckbox.ts +++ b/src/app/components/tristatecheckbox/tristatecheckbox.ts @@ -19,15 +19,14 @@ export const TRISTATECHECKBOX_VALUE_ACCESSOR: any = { @Component({ selector: 'p-triStateCheckbox', template: ` -
-
+
- + `, providers: [TRISTATECHECKBOX_VALUE_ACCESSOR], changeDetection: ChangeDetectionStrategy.OnPush, diff --git a/src/app/showcase/doc/tristatecheckbox/basicdoc.ts b/src/app/showcase/doc/tristatecheckbox/basicdoc.ts index e366a891bd1..f76cb44852f 100644 --- a/src/app/showcase/doc/tristatecheckbox/basicdoc.ts +++ b/src/app/showcase/doc/tristatecheckbox/basicdoc.ts @@ -9,7 +9,7 @@ import { Code } from '../../domain/code';
- +
` @@ -23,12 +23,12 @@ export class BasicDoc { code: Code = { basic: ` -`, +`, html: `
- +
`, typescript: ` diff --git a/src/app/showcase/doc/tristatecheckbox/reactiveformsdoc.ts b/src/app/showcase/doc/tristatecheckbox/reactiveformsdoc.ts index 5e75a3ddece..2b0c8262c75 100644 --- a/src/app/showcase/doc/tristatecheckbox/reactiveformsdoc.ts +++ b/src/app/showcase/doc/tristatecheckbox/reactiveformsdoc.ts @@ -11,7 +11,7 @@ import { Code } from '../../domain/code';
- +
@@ -34,14 +34,14 @@ export class ReactiveFormsDoc implements OnInit { basic: `
- +
`, html: `
- +
`,