|
1 | 1 | <section>
|
2 |
| - <p id="red-static" class="red">I'm red from a static class composition and bold from an inherited composition.</p> |
3 |
| - <p id="green-static" class="green">I'm green from a static class composition.</p> |
| 2 | + <p id="red-static" block:class="red">I'm red from a static class composition and bold from an inherited composition.</p> |
| 3 | + <p id="green-static" block:class="green">I'm green from a static class composition.</p> |
4 | 4 |
|
5 |
| - <p id="red-green-dynamic" class={{style-if enabled "green" "red"}}>I'm {{if enabled "green" "red"}} from a dynamic class composition.</p> |
| 5 | + <p id="red-green-dynamic" block:class={{style-if enabled "green" "red"}}>I'm {{if enabled "green" "red"}} from a dynamic class composition.</p> |
6 | 6 |
|
7 |
| - <p id="pink-static" class="pink">I'm pink from a static attribute composition and italic from the composition's parent class.</p> |
8 |
| - <p id="purple-static" class="purple">I'm purple from a static attribute composition and italic from the composition's parent class.</p> |
| 7 | + <p id="pink-static" block:class="pink">I'm pink from a static attribute composition and italic from the composition's parent class.</p> |
| 8 | + <p id="purple-static" block:class="purple">I'm purple from a static attribute composition and italic from the composition's parent class.</p> |
9 | 9 |
|
10 |
| - <p id="pink-purple-dynamic" class={{style-if enabled "pink" "purple"}}>I'm {{if enabled "pink" "purple"}} from a dynamic attribute composition and italic from the composition's parent class.</p> |
| 10 | + <p id="pink-purple-dynamic" block:class={{style-if enabled "pink" "purple"}}>I'm {{if enabled "pink" "purple"}} from a dynamic attribute composition and italic from the composition's parent class.</p> |
11 | 11 |
|
12 |
| - <p id="blue-static" class="blue">I'm not blue from an attribute composition with boolean attribute condition.</p> |
13 |
| - <p id="blue-active" class="blue" state:active>I'm blue from an attribute composition with boolean attribute condition.</p> |
14 |
| - <p id="blue-dynamic" class="blue" state:active={{enabled}} >I'm toggled blue from an state composition with boolean attribute condition.</p> |
| 12 | + <p id="blue-static" block:class="blue">I'm not blue from an attribute composition with boolean attribute condition.</p> |
| 13 | + <p id="blue-active" block:class="blue" block:active>I'm blue from an attribute composition with boolean attribute condition.</p> |
| 14 | + <p id="blue-dynamic" block:class="blue" block:active={{enabled}} >I'm toggled blue from an state composition with boolean attribute condition.</p> |
15 | 15 |
|
16 |
| - <p id="orange-static" class="orange">I'm not orange from a class composition with boolean attribute condition.</p> |
17 |
| - <p id="orange-active" class="orange" state:active>I'm orange from a class composition with boolean attribute condition.</p> |
18 |
| - <p id="orange-dynamic" class="orange" state:active={{enabled}} >I'm toggled orange from a class with boolean attribute condition.</p> |
| 16 | + <p id="orange-static" block:class="orange">I'm not orange from a class composition with boolean attribute condition.</p> |
| 17 | + <p id="orange-active" block:class="orange" block:active>I'm orange from a class composition with boolean attribute condition.</p> |
| 18 | + <p id="orange-dynamic" block:class="orange" block:active={{enabled}} >I'm toggled orange from a class with boolean attribute condition.</p> |
19 | 19 |
|
20 |
| - <p id="yellow-static" class="yellow" state:color="none">I'm not yellow from a class composition with a switch class condition.</p> |
21 |
| - <p id="yellow-active" class="yellow" state:color="yellow">I'm yellow from a class composition with a switch class condition.</p> |
22 |
| - <p id="yellow-dynamic" class="yellow" state:color={{color}}>I'm toggled {{color}} from a class composition with a switch class condition.</p> |
| 20 | + <p id="yellow-static" block:class="yellow" block:color="none">I'm not yellow from a class composition with a switch class condition.</p> |
| 21 | + <p id="yellow-active" block:class="yellow" block:color="yellow">I'm yellow from a class composition with a switch class condition.</p> |
| 22 | + <p id="yellow-dynamic" block:class="yellow" block:color={{color}}>I'm toggled {{color}} from a class composition with a switch class condition.</p> |
23 | 23 |
|
24 |
| - <p id="brown-static" class="brown" state:color="none">I'm not brown from an attribute composition with a switch attribute condition.</p> |
25 |
| - <p id="brown-active" class="brown" state:color="yellow">I'm brown from an attribute composition with a switch attribute condition.</p> |
26 |
| - <p id="brown-dynamic" class="brown" state:color={{color}}>I'm toggled brown from an state composition with a switch attribute condition.</p> |
| 24 | + <p id="brown-static" block:class="brown" block:color="none">I'm not brown from an attribute composition with a switch attribute condition.</p> |
| 25 | + <p id="brown-active" block:class="brown" block:color="yellow">I'm brown from an attribute composition with a switch attribute condition.</p> |
| 26 | + <p id="brown-dynamic" block:class="brown" block:color={{color}}>I'm toggled brown from an state composition with a switch attribute condition.</p> |
27 | 27 |
|
28 |
| - <p id="yellow-brown-dynamic" class={{style-if enabled "yellow" "brown"}} state:color={{color}}>I'm toggled {{if enabled "yellow" "brown"}} or unset from a dynamic {{if enabled "attribute" "class"}} composition.</p> |
| 28 | + <p id="yellow-brown-dynamic" block:class={{style-if enabled "yellow" "brown"}} block:color={{color}}>I'm toggled {{if enabled "yellow" "brown"}} or unset from a dynamic {{if enabled "attribute" "class"}} composition.</p> |
29 | 29 |
|
30 |
| - <p id="green-bold" class="green-bold">I'm green and bold from multiple class compositions.</p> |
| 30 | + <p id="green-bold" block:class="green-bold">I'm green and bold from multiple class compositions.</p> |
31 | 31 |
|
32 | 32 | <button {{action "toggleEnabled"}} id="toggle-enabled">Toggle Enabled States</button>
|
33 | 33 | <button {{action "toggleColor"}} id="toggle-color">Toggle Color States</button>
|
|
0 commit comments