Skip to content

Commit a26e9eb

Browse files
authored
fix(Liveness): update camera module background on verifying step to match theme (#5125)
1 parent 842c00a commit a26e9eb

File tree

7 files changed

+11
-4
lines changed

7 files changed

+11
-4
lines changed

Diff for: .changeset/seven-frogs-complain.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@aws-amplify/ui": patch
3+
---
4+
5+
fix(Liveness): Update camera module background on verifying step to match theme

Diff for: docs/__tests__/__snapshots__/cssvars-table.test.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -3380,7 +3380,7 @@ exports[`CSS Variables Table 1`] = `
33803380
},
33813381
{
33823382
"variable": "--amplify-components-liveness-camera-module-background-color",
3383-
"value": "var(--amplify-colors-black)"
3383+
"value": "var(--amplify-colors-background-primary)"
33843384
},
33853385
{
33863386
"variable": "--amplify-components-loader-animation-duration",

Diff for: packages/ui/src/theme/__tests__/__snapshots__/defaultTheme.test.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ exports[`@aws-amplify/ui defaultTheme should match snapshot 1`] = `
718718
--amplify-components-link-focus-color: var(--amplify-colors-font-focus);
719719
--amplify-components-link-hover-color: var(--amplify-colors-font-hover);
720720
--amplify-components-link-visited-color: var(--amplify-colors-font-interactive);
721-
--amplify-components-liveness-camera-module-background-color: var(--amplify-colors-black);
721+
--amplify-components-liveness-camera-module-background-color: var(--amplify-colors-background-primary);
722722
--amplify-components-loader-width: var(--amplify-font-sizes-medium);
723723
--amplify-components-loader-height: var(--amplify-font-sizes-medium);
724724
--amplify-components-loader-font-size: var(--amplify-font-sizes-xs);

Diff for: packages/ui/src/theme/__tests__/__snapshots__/overrides.test.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ exports[`@aws-amplify/ui overrides should match snapshot 1`] = `
718718
--amplify-components-link-focus-color: var(--amplify-colors-font-focus);
719719
--amplify-components-link-hover-color: var(--amplify-colors-font-hover);
720720
--amplify-components-link-visited-color: var(--amplify-colors-font-interactive);
721-
--amplify-components-liveness-camera-module-background-color: var(--amplify-colors-black);
721+
--amplify-components-liveness-camera-module-background-color: var(--amplify-colors-background-primary);
722722
--amplify-components-loader-width: var(--amplify-font-sizes-medium);
723723
--amplify-components-loader-height: var(--amplify-font-sizes-medium);
724724
--amplify-components-loader-font-size: var(--amplify-font-sizes-xs);

Diff for: packages/ui/src/theme/__tests__/__snapshots__/themeType.test.ts.snap

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ exports[`Amplify UI Theme components should allow empty components 1`] = `
2828
"image": {},
2929
"inappmessaging": {},
3030
"link": {},
31+
"liveness": {},
3132
"loader": {},
3233
"menu": {},
3334
"pagination": {},

Diff for: packages/ui/src/theme/__tests__/themeType.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ describe('Amplify UI Theme', () => {
3030
image: {},
3131
inappmessaging: {},
3232
link: {},
33+
liveness: {},
3334
loader: {},
3435
menu: {},
3536
pagination: {},

Diff for: packages/ui/src/theme/tokens/components/liveness.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ export type LivenessTokens<OutputType extends OutputVariantKey> = {
1313

1414
export const liveness: Required<LivenessTokens<'default'>> = {
1515
cameraModule: {
16-
backgroundColor: { value: '{colors.black}' },
16+
backgroundColor: { value: '{colors.background.primary.value}' },
1717
},
1818
};

0 commit comments

Comments
 (0)