Skip to content

Commit 8fc9936

Browse files
Add support for captcha_widget_theme property in colors within themes schema (#906)
* feat(auth0-deploy-cli): add captcha_widget_theme property to colors object * fix linting * added testcase
1 parent 194fb91 commit 8fc9936

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/tools/auth0/handlers/themes.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,11 @@ export const schema = {
195195
pattern: '^#(([0-9a-fA-F]{3}){1,2}|([0-9a-fA-F]{4}){1,2})$',
196196
type: 'string',
197197
},
198+
captcha_widget_theme: {
199+
description: 'Captcha Widget Theme',
200+
pattern: '^(auto|light|dark)$',
201+
type: 'string',
202+
},
198203
error: {
199204
description: 'Error',
200205
pattern: '^#(([0-9a-fA-F]{3}){1,2}|([0-9a-fA-F]{4}){1,2})$',
@@ -288,6 +293,7 @@ export const schema = {
288293
'success',
289294
'widget_background',
290295
'widget_border',
296+
'captcha_widget_theme'
291297
],
292298
type: 'object',
293299
},
@@ -520,6 +526,7 @@ export interface Colors {
520526
links_focused_components: string;
521527
header: string;
522528
body_text: string;
529+
captcha_widget_theme:string;
523530
widget_background: string;
524531
widget_border: string;
525532
input_labels_placeholders: string;

test/tools/auth0/handlers/themes.tests.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ const mockTheme = ({ withThemeId } = {}) => {
6767
success: '#FF00CC',
6868
widget_background: '#FF00CC',
6969
widget_border: '#FF00CC',
70+
captcha_widget_theme: 'auto'
7071
},
7172
fonts: {
7273
body_text: {

0 commit comments

Comments
 (0)