diff --git a/apps/prs/angular/src/routes/docs/checkbox/checkbox.component.html b/apps/prs/angular/src/routes/docs/checkbox/checkbox.component.html index 152e2e9290..3046795d3c 100644 --- a/apps/prs/angular/src/routes/docs/checkbox/checkbox.component.html +++ b/apps/prs/angular/src/routes/docs/checkbox/checkbox.component.html @@ -28,20 +28,48 @@

With description

+ description="Receive weekly updates about new features" +>

Indeterminate

- +

Sizes

States

- - - + + + +

Examples

@@ -52,7 +80,8 @@

Include a link in the helper text of an option

name="email" text="Email" value="email" - [description]="descriptionTemplate"> + [description]="descriptionTemplate" + > Help text with a link. @@ -64,7 +93,10 @@

Include a link in the helper text of an option

Reveal input based on a selection

- + @@ -106,7 +138,12 @@

Reveal input based on a selection

- + @@ -120,11 +157,13 @@

Reveal input based on a selection

Select one or more from a list of options

+ helpText="Choose all that apply" +> + (onChange)="onSelectionChange($event)" + > diff --git a/apps/prs/react/src/routes/docs/checkbox/checkbox.tsx b/apps/prs/react/src/routes/docs/checkbox/checkbox.tsx index b66d003cca..f66fede334 100644 --- a/apps/prs/react/src/routes/docs/checkbox/checkbox.tsx +++ b/apps/prs/react/src/routes/docs/checkbox/checkbox.tsx @@ -36,7 +36,21 @@ export function DocsCheckboxRoute() {

States

- + +

Examples

@@ -74,7 +88,13 @@ export function DocsCheckboxRoute() { label="Email" reveal={ - { /* no-op */ }} value="" /> + { + /* no-op */ + }} + value="" + /> } /> @@ -83,7 +103,13 @@ export function DocsCheckboxRoute() { label="Phone" reveal={ - { /* no-op */ }} value="" /> + { + /* no-op */ + }} + value="" + /> } /> @@ -92,7 +118,13 @@ export function DocsCheckboxRoute() { label="Text message" reveal={ - { /* no-op */ }} value="" /> + { + /* no-op */ + }} + value="" + /> } /> @@ -111,7 +143,13 @@ export function DocsCheckboxRoute() { value="email" reveal={ - { /* no-op */ }} value="" /> + { + /* no-op */ + }} + value="" + /> } /> @@ -121,7 +159,13 @@ export function DocsCheckboxRoute() { value="phone" reveal={ - { /* no-op */ }} value="" /> + { + /* no-op */ + }} + value="" + /> } /> @@ -131,7 +175,13 @@ export function DocsCheckboxRoute() { value="text" reveal={ - { /* no-op */ }} value="" /> + { + /* no-op */ + }} + value="" + /> } /> diff --git a/docs/src/data/configurations/checkbox.ts b/docs/src/data/configurations/checkbox.ts index a91fabf690..8e11c38ccf 100644 --- a/docs/src/data/configurations/checkbox.ts +++ b/docs/src/data/configurations/checkbox.ts @@ -259,6 +259,7 @@ export const checkboxConfigurations: ComponentConfigurations = { code: { react: ` + `, angular: [ { @@ -269,6 +270,7 @@ export const checkboxConfigurations: ComponentConfigurations = { this.form = this.fb.group({ disabled: [{ value: false, disabled: true }], disabledChecked: [{ value: true, disabled: true }], + disabledCheckedError: [{ value: true, disabled: true }], terms: [false], }); } @@ -288,6 +290,14 @@ export const checkboxConfigurations: ComponentConfigurations = { mb="m" >
+ + + + + `, }, }, diff --git a/libs/web-components/src/components/checkbox/Checkbox.svelte b/libs/web-components/src/components/checkbox/Checkbox.svelte index 8ff1cc2376..6878aef5c5 100644 --- a/libs/web-components/src/components/checkbox/Checkbox.svelte +++ b/libs/web-components/src/components/checkbox/Checkbox.svelte @@ -600,7 +600,7 @@ max-width: ${maxwidth}; border: var(--goa-checkbox-border-disabled-error); } .disabled.error .container svg { - fill: #f58185; + fill: var(--goa-checkbox-color-bg-checked-error-disabled); } /* Version 2 */ diff --git a/package-lock.json b/package-lock.json index aaacd76886..c3ffca18d4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -38,7 +38,7 @@ }, "devDependencies": { "@abgov/design-tokens": "1.10.0", - "@abgov/design-tokens-v2": "npm:@abgov/design-tokens@2.12.6", + "@abgov/design-tokens-v2": "npm:@abgov/design-tokens@2.12.7", "@abgov/nx-release": "12.0.0", "@angular-devkit/build-angular": "21.2.16", "@angular-devkit/core": "21.2.6", @@ -134,9 +134,9 @@ }, "node_modules/@abgov/design-tokens-v2": { "name": "@abgov/design-tokens", - "version": "2.12.6", - "resolved": "https://registry.npmjs.org/@abgov/design-tokens/-/design-tokens-2.12.6.tgz", - "integrity": "sha512-QeeFnzJv6O5d7daxrJdxQl6gaYgKXTGgGMl164CuOnzMg6r1fpVh7PSmqfUp3IXdNXXgE+m4eTb3IHXBrjTJ4g==", + "version": "2.12.7", + "resolved": "https://registry.npmjs.org/@abgov/design-tokens/-/design-tokens-2.12.7.tgz", + "integrity": "sha512-pnYI/G3598FYOVHISalV1CkJaa1e1GB1wmiV6wtjXRWwyozH/NsEbMJoP9tebYWE25pi61prCcUMkmx8tWcC7g==", "dev": true }, "node_modules/@abgov/nx-release": { diff --git a/package.json b/package.json index b62d70ab20..20642b675b 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ }, "devDependencies": { "@abgov/design-tokens": "1.10.0", - "@abgov/design-tokens-v2": "npm:@abgov/design-tokens@2.12.6", + "@abgov/design-tokens-v2": "npm:@abgov/design-tokens@2.12.7", "@abgov/nx-release": "12.0.0", "@angular-devkit/build-angular": "21.2.16", "@angular-devkit/core": "21.2.6",