Skip to content

Commit

Permalink
test: added test case for color opacity (update)
Browse files Browse the repository at this point in the history
  • Loading branch information
arfedulov committed Jun 5, 2024
1 parent 2bb8562 commit 81351cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,10 @@ describe('theme', () => {
/* layer: theme */
:root{--un-preset-theme-colors-rgba:255 0 0;}
.dark{--un-preset-theme-colors-rgba:0 255 0;}
.dark .text-rgba{--un-text-opacity:0.7;}
/* layer: default */
.text-rgba{--un-text-opacity:0.4;color:rgb(var(--un-preset-theme-colors-rgba) / var(--un-text-opacity));}
.text-rgba\\/50{color:rgb(var(--un-preset-theme-colors-rgba) / 0.5);}
.dark .text-rgba{--un-text-opacity:0.7;color:rgb(var(--un-preset-theme-colors-rgba) / var(--un-text-opacity));}
.dark .text-rgba\\/50{color:rgb(var(--un-preset-theme-colors-rgba) / 0.5);}"
.text-rgba\\/50{color:rgb(var(--un-preset-theme-colors-rgba) / 0.5);}"
`)
})

Expand Down

0 comments on commit 81351cd

Please sign in to comment.