Skip to content

Commit aa2963c

Browse files
authored
fix: text content theme (#267)
1 parent b0821e4 commit aa2963c

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/lib/kit/utils/__tests__/common.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,6 @@ describe('kit/utils/common', () => {
9292
viewSpec: {addButtonPosition: 'down'},
9393
});
9494

95-
expect(prepareSpec({viewSpec: {themeLabel: 'WARNING'}} as any)).toMatchObject({
96-
viewSpec: {textContentParams: {themeLabel: 'warning'}},
97-
});
98-
9995
expect(prepareSpec({viewSpec: {oneOfParams: {toggler: 'SELECT'}}} as any)).toMatchObject({
10096
viewSpec: {oneOfParams: {toggler: 'select'}},
10197
});

src/lib/kit/utils/common.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,6 @@ export const prepareSpec = <Type extends Spec>(
106106
result.viewSpec.addButtonPosition = result.viewSpec.addButtonPosition.toLowerCase();
107107
}
108108

109-
if (isString(result.viewSpec?.themeLabel)) {
110-
result.viewSpec.textContentParams = {
111-
...result.viewSpec.textContentParams,
112-
themeLabel: result.viewSpec.themeLabel.toLowerCase(),
113-
};
114-
}
115-
116109
if (isString(result.viewSpec?.oneOfParams?.toggler)) {
117110
result.viewSpec.oneOfParams.toggler = result.viewSpec.oneOfParams.toggler.toLowerCase();
118111
}

0 commit comments

Comments
 (0)