Skip to content

Commit

Permalink
docs: fix contrast for component-binding example (#8920)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhauhau committed Jul 6, 2023
1 parent a23fcc0 commit daba0fc
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@
}
</script>

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

<Keypad bind:value={pin} on:submit={handleSubmit} />

<style>
h1 {
color: #ccc;
}
h1.pin {
color: #333;
}
:global(body.dark) h1 {
color: #444;
}
:global(body.dark) h1.pin {
color: #fff;
}
</style>

0 comments on commit daba0fc

Please sign in to comment.