-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(LIvenessCameraModule): change inline style to css class (#663)
* refactor(liveness) amplify-liveness-camera-module style to class * refactor(liveness) amplify-liveness-camera-module more style to class * refactor(liveness) amplify-liveness-camera-module even more style to class * fix(theme): update test snapshot * refactor(liveness): use enum for classnames Co-authored-by: MJ☔ <[email protected]>
- Loading branch information
Showing
7 changed files
with
114 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
packages/react/src/components/Liveness/types/classNames.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export enum LivenessClassNames { | ||
FadeOut = 'amplify-liveness-fade-out', | ||
CameraModule = 'amplify-liveness-camera-module', | ||
CameraModuleCenteredLoader = 'amplify-liveness-camera-module__centered-loader', | ||
CameraModuleCanvas = 'amplify-liveness-camera-module__canvas', | ||
CameraModuleVideo = 'amplify-liveness-camera-module__video', | ||
CameraModuleVideoContainer = 'amplify-liveness-camera-module__video-container', | ||
CameraModuleRecordingIconContainer = 'amplify-liveness-camera-module__recording-icon-container', | ||
CameraModuleCancelButtonContainer = 'amplify-liveness-camera-module__cancel-button-container', | ||
CameraModuleOverlayCountdown = 'amplify-liveness-camera-module__overlay--countdown', | ||
CameraModuleCountdownTimerContainer = 'amplify-liveness-camera-module__countdown-timer-container', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { DesignToken, ColorValue } from '../types/designToken'; | ||
|
||
export interface LivenessTokens { | ||
cameraModule: { backgroundColor: DesignToken<ColorValue> }; | ||
} | ||
|
||
export const liveness: LivenessTokens = { | ||
cameraModule: { | ||
backgroundColor: { value: '{colors.black}' }, | ||
}, | ||
}; |