Skip to content

Commit daba0fc

Browse files
authored
docs: fix contrast for component-binding example (#8920)
1 parent a23fcc0 commit daba0fc

File tree

1 file changed

+16
-1
lines changed
  • documentation/examples/05-bindings/12-component-bindings

1 file changed

+16
-1
lines changed

documentation/examples/05-bindings/12-component-bindings/App.svelte

+16-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@
99
}
1010
</script>
1111

12-
<h1 style="color: {pin ? '#333' : '#ccc'}">{view}</h1>
12+
<h1 class:pin>{view}</h1>
1313

1414
<Keypad bind:value={pin} on:submit={handleSubmit} />
15+
16+
<style>
17+
h1 {
18+
color: #ccc;
19+
}
20+
h1.pin {
21+
color: #333;
22+
}
23+
:global(body.dark) h1 {
24+
color: #444;
25+
}
26+
:global(body.dark) h1.pin {
27+
color: #fff;
28+
}
29+
</style>

0 commit comments

Comments
 (0)