Skip to content

Commit e95c31c

Browse files
make test more useful
show how to use .light-content and .dark-content
1 parent 3b7d6ec commit e95c31c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/docs/shortcodes/brand-light-dark.qmd

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,21 @@ _quarto:
2020
ensureHtmlElements:
2121
-
2222
- 'div#default-brand[style="background-color: #82aeef"]'
23-
- 'div#light-brand[style="background-color: #82aeef"]'
24-
- 'div#dark-brand[style="background-color: #415777"]'
23+
- 'div#light-brand[style="color: #116423; background-color: #82aeef"]'
24+
- 'div#dark-brand[style="color: #ffeecc; background-color: #415777"]'
2525
- []
2626
---
2727

2828
::: {#default-brand style='background-color: {{< brand color blue >}}'}
2929
Default brand blue background.
3030
:::
3131

32-
::: {#light-brand style='background-color: {{< brand color blue light >}}'}
32+
We use `.light-content` and `.dark-content` to make content that switches in light and dark mode:
33+
34+
::: {#light-brand .light-content style='color: {{< brand color foreground light >}}; background-color: {{< brand color blue light >}}'}
3335
Light brand blue background.
3436
:::
3537

36-
::: {#dark-brand style='background-color: {{< brand color blue dark >}}'}
38+
::: {#dark-brand .dark-content style='color: {{< brand color foreground dark >}}; background-color: {{< brand color blue dark >}}'}
3739
Dark brand blue background.
3840
:::

0 commit comments

Comments
 (0)