Skip to content

Semantic HTML #83

@tonylomax

Description

@tonylomax

Not sure about using div tags here. I think a button tag might be more semantically appropriate and accessible.

<Rectangle backgroundColor="var(--main-green)">
<div className={styles['category-task']}>
<p>{task.name}</p>
<div
className={styles.checkboxContainer}
id={task.id}
onClick={onChecked}>
{complete && (
<div className={styles.checkboxMark}>
<Image
src="/icons/check-mark.svg"
alt="check mark"
width={20}
height={20}
/>
</div>
)}
</div>
</div>
</Rectangle>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions