Skip to content

Commit

Permalink
Add support for captcha_widget_theme property in colors within themes…
Browse files Browse the repository at this point in the history
… schema (#906)

* feat(auth0-deploy-cli): add captcha_widget_theme property to colors object

* fix linting

* added testcase
  • Loading branch information
developerkunal authored Jun 21, 2024
1 parent 194fb91 commit 8fc9936
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/tools/auth0/handlers/themes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ export const schema = {
pattern: '^#(([0-9a-fA-F]{3}){1,2}|([0-9a-fA-F]{4}){1,2})$',
type: 'string',
},
captcha_widget_theme: {
description: 'Captcha Widget Theme',
pattern: '^(auto|light|dark)$',
type: 'string',
},
error: {
description: 'Error',
pattern: '^#(([0-9a-fA-F]{3}){1,2}|([0-9a-fA-F]{4}){1,2})$',
Expand Down Expand Up @@ -288,6 +293,7 @@ export const schema = {
'success',
'widget_background',
'widget_border',
'captcha_widget_theme'
],
type: 'object',
},
Expand Down Expand Up @@ -520,6 +526,7 @@ export interface Colors {
links_focused_components: string;
header: string;
body_text: string;
captcha_widget_theme:string;
widget_background: string;
widget_border: string;
input_labels_placeholders: string;
Expand Down
1 change: 1 addition & 0 deletions test/tools/auth0/handlers/themes.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const mockTheme = ({ withThemeId } = {}) => {
success: '#FF00CC',
widget_background: '#FF00CC',
widget_border: '#FF00CC',
captcha_widget_theme: 'auto'
},
fonts: {
body_text: {
Expand Down

0 comments on commit 8fc9936

Please sign in to comment.