Skip to content

Commit

Permalink
update themed to handle deprecated background color token
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfranco committed May 29, 2024
1 parent a133659 commit c02acc6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/calcite-components/src/tests/commonTests/themed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,9 @@ async function assertThemedProps(page: E2EPage, options: TestTarget): Promise<vo
* @returns string - the new value for the token
*/
function assignTestTokenThemeValues(token: string): string {
return token.includes("color")
const legacyBackgroundColorToken = token.endsWith("-background");

return token.includes("color") || legacyBackgroundColorToken
? "rgb(0, 191, 255)"
: token.includes("shadow")
? "rgb(255, 255, 255) 0px 0px 0px 4px, rgb(255, 105, 180) 0px 0px 0px 5px inset, rgb(0, 191, 255) 0px 0px 0px 9px"
Expand Down

0 comments on commit c02acc6

Please sign in to comment.