Skip to content

Commit bb2e926

Browse files
봄봄
authored andcommitted
refactor: 시맨틱 태그 수정
1 parent 23f2264 commit bb2e926

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/page/signup/component/SurveyItem/SurveyItem.css.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { colors, fonts } from '@/style/token';
55
export const itemContainer = style({
66
display: 'flex',
77
gap: '1.2rem',
8-
cursor: 'pointer',
98
});
109

1110
export const itemText = style({
@@ -16,4 +15,6 @@ export const itemText = style({
1615
export const radioIcon = style({
1716
width: '2rem',
1817
height: '2rem',
18+
19+
cursor: 'pointer',
1920
});

src/page/signup/component/SurveyItem/SurveyItem.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ const SurveyItem = ({ item, isChecked, onClick }: itemProps) => {
1616
const RadioIcon = isChecked ? IcRadioChecked : IcRadioDefault;
1717

1818
return (
19-
<div className={itemContainer} onClick={onClick}>
20-
<RadioIcon className={radioIcon} />
19+
<div className={itemContainer}>
20+
<button onClick={onClick}>
21+
<RadioIcon className={radioIcon} />
22+
</button>
2123
<p className={itemText}>{item.content}</p>
2224
</div>
2325
);

0 commit comments

Comments
 (0)