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