docs: fix contrast for component-binding example (#8920)

pull/8931/head
Tan Li Hau 1 year ago committed by GitHub
parent a23fcc0f67
commit daba0fc9d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,6 +9,21 @@
} }
</script> </script>
<h1 style="color: {pin ? '#333' : '#ccc'}">{view}</h1> <h1 class:pin>{view}</h1>
<Keypad bind:value={pin} on:submit={handleSubmit} /> <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>

Loading…
Cancel
Save