Skip to content

Commit 7ab603f

Browse files
website: Change checkbox label to always show 'Show Alpha' (#200)
* Change checkbox label to always show 'Show Alpha' * Invert checkbox checked state for alpha visibility
1 parent b6b75db commit 7ab603f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

website/src/pages/colorful/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ function Example() {
1717
/>
1818
<div>
1919
<label>
20-
<input type="checkbox" checked={disableAlpha} onChange={(evn) => setDisableAlpha(evn.target.checked)} />
21-
{disableAlpha ? 'Hide' : 'Show'} Alpha
20+
<input type="checkbox" checked={!disableAlpha} onChange={(evn) => setDisableAlpha(evn.target.checked)} />
21+
Show Alpha
2222
</label>
2323
</div>
2424
</div>

0 commit comments

Comments
 (0)