@@ -17,9 +17,9 @@ const themeA = {
1717 colorBackground : themeAColor ,
1818 colorInput : themeAColor ,
1919 colorInputForeground : themeAColor ,
20- colorText : themeAColor ,
20+ colorForeground : themeAColor ,
2121 colorPrimaryForeground : themeAColor ,
22- colorTextSecondary : themeAColor ,
22+ colorMutedForeground : themeAColor ,
2323 borderRadius : '1rem' ,
2424 fontFamily : 'Comic Sans' ,
2525 fontFamilyButtons : 'Comic Sans' ,
@@ -39,9 +39,9 @@ const themeB = {
3939 colorBackground : themeBColor ,
4040 colorInput : themeBColor ,
4141 colorInputForeground : themeBColor ,
42- colorText : themeBColor ,
42+ colorForeground : themeBColor ,
4343 colorPrimaryForeground : themeBColor ,
44- colorTextSecondary : themeBColor ,
44+ colorMutedForeground : themeBColor ,
4545 borderRadius : '2rem' ,
4646 fontFamily : 'Arial' ,
4747 fontFamilyButtons : 'Arial' ,
@@ -338,7 +338,7 @@ describe('AppearanceProvider layout flows', () => {
338338 expect ( result . current . parsedLayout . socialButtonsVariant ) . toBe ( 'blockButton' ) ;
339339 } ) ;
340340
341- it ( 'removes the baseTheme when simpleStyles is passed to globalAppearance' , ( ) => {
341+ it ( 'removes the base theme when simpleStyles is passed to globalAppearance' , ( ) => {
342342 const wrapper = ( { children } ) => (
343343 < AppearanceProvider
344344 appearanceKey = 'signIn'
@@ -359,7 +359,7 @@ describe('AppearanceProvider layout flows', () => {
359359 expect ( result . current . parsedElements [ 0 ] [ 'alert' ] . backgroundColor ) . toBe ( themeAColor ) ;
360360 } ) ;
361361
362- it ( 'removes the baseTheme when simpleStyles is passed to appearance' , ( ) => {
362+ it ( 'removes the base theme when simpleStyles is passed to appearance' , ( ) => {
363363 const wrapper = ( { children } ) => (
364364 < AppearanceProvider
365365 appearanceKey = 'signIn'
@@ -479,7 +479,7 @@ describe('AppearanceProvider theme flows', () => {
479479 ) ;
480480
481481 const { result } = renderHook ( ( ) => useAppearance ( ) , { wrapper } ) ;
482- // Should include clerk theme styles (baseTheme will be included)
482+ // Should include clerk theme styles (base theme will be included)
483483 expect ( result . current . parsedElements . length ) . toBeGreaterThan ( 0 ) ;
484484 } ) ;
485485
@@ -500,42 +500,7 @@ describe('AppearanceProvider theme flows', () => {
500500 expect ( result . current . parsedElements . length ) . toBe ( 2 ) ;
501501 } ) ;
502502
503- it ( 'theme property takes precedence over deprecated baseTheme' , ( ) => {
504- const wrapper = ( { children } ) => (
505- < AppearanceProvider
506- appearanceKey = 'signIn'
507- appearance = { {
508- theme : 'simple' ,
509- baseTheme : 'clerk' , // This should be ignored
510- } }
511- >
512- { children }
513- </ AppearanceProvider >
514- ) ;
515-
516- const { result } = renderHook ( ( ) => useAppearance ( ) , { wrapper } ) ;
517- // Should include both simple theme and base theme (2 elements total)
518- expect ( result . current . parsedElements . length ) . toBe ( 2 ) ;
519- } ) ;
520-
521- it ( 'maintains backward compatibility with baseTheme property' , ( ) => {
522- const wrapper = ( { children } ) => (
523- < AppearanceProvider
524- appearanceKey = 'signIn'
525- appearance = { {
526- baseTheme : 'simple' ,
527- } }
528- >
529- { children }
530- </ AppearanceProvider >
531- ) ;
532-
533- const { result } = renderHook ( ( ) => useAppearance ( ) , { wrapper } ) ;
534- // Should work the same as theme: 'simple' (2 elements total)
535- expect ( result . current . parsedElements . length ) . toBe ( 2 ) ;
536- } ) ;
537-
538- it ( 'supports object-based themes with new theme property' , ( ) => {
503+ it ( 'supports object-based themes with theme property' , ( ) => {
539504 const customTheme = {
540505 elements : {
541506 card : { backgroundColor : 'red' } ,
@@ -559,7 +524,7 @@ describe('AppearanceProvider theme flows', () => {
559524 expect ( result . current . parsedElements . some ( el => el . card ?. backgroundColor === 'red' ) ) . toBe ( true ) ;
560525 } ) ;
561526
562- it ( 'supports array-based themes with new theme property' , ( ) => {
527+ it ( 'supports array-based themes with theme property' , ( ) => {
563528 const themeA = {
564529 elements : { card : { backgroundColor : 'red' } } ,
565530 } ;
0 commit comments