mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 13:38:51 +00:00
Add label for element
This commit is contained in:
@@ -13,12 +13,16 @@ const StyledHeaderMenu = styled.ul`
|
||||
const HeaderMenu = () => {
|
||||
return (
|
||||
<StyledHeaderMenu>
|
||||
<ButtonIcon>
|
||||
<li>
|
||||
<ButtonIcon aria-label="Profile">
|
||||
<IoPersonCircleOutline />
|
||||
</ButtonIcon>
|
||||
<ButtonIcon>
|
||||
</li>
|
||||
<li>
|
||||
<ButtonIcon aria-label="Logout">
|
||||
<HiOutlineLogout />
|
||||
</ButtonIcon>
|
||||
</li>
|
||||
</StyledHeaderMenu>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -37,7 +37,7 @@ const Toggle = ({ id }: { id: string }): React.JSX.Element => {
|
||||
};
|
||||
|
||||
return (
|
||||
<StyledToggle onClick={handleClick}>
|
||||
<StyledToggle onClick={handleClick} aria-label={`Menu item ${id}`}>
|
||||
<HiEllipsisVertical />
|
||||
</StyledToggle>
|
||||
);
|
||||
|
||||
@@ -19,7 +19,7 @@ const StyledSelect = styled.select`
|
||||
|
||||
const Select = ({ options, value, onChange }: ISelect) => {
|
||||
return (
|
||||
<StyledSelect value={value} onChange={onChange}>
|
||||
<StyledSelect value={value} onChange={onChange} aria-label="Sort">
|
||||
{options.map((option) => (
|
||||
<option value={option.value} key={option.value}>
|
||||
{option.label}
|
||||
|
||||
Reference in New Issue
Block a user