mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-23 10:46:13 +02:00
Link <label for> to <input id>. Fixes #137
This commit is contained in:
@@ -26,6 +26,7 @@ const Details: React.FC<{}> = () => {
|
||||
|
||||
return (
|
||||
<label
|
||||
htmlFor="radio-button-group"
|
||||
style={{
|
||||
alignItems: 'center',
|
||||
backgroundColor: value === selectedValue ? '#00449E' : 'transparent',
|
||||
@@ -35,6 +36,7 @@ const Details: React.FC<{}> = () => {
|
||||
}}
|
||||
>
|
||||
<input
|
||||
id="radio-button-group"
|
||||
type="radio"
|
||||
name="option"
|
||||
value={value}
|
||||
|
Reference in New Issue
Block a user