mirror of
https://github.com/react95-io/React95.git
synced 2026-04-26 03:00:18 -04:00
added role and aria labels
This commit is contained in:
@@ -21,12 +21,13 @@ const StyledList = styled.ul`
|
||||
position: relative;
|
||||
|
||||
`;
|
||||
|
||||
// TODO keyboard controls
|
||||
const List = ({ inline, shadow, children, fullWidth, ...otherProps }) => (
|
||||
<StyledList
|
||||
inline={inline}
|
||||
shadow={shadow}
|
||||
fullWidth={fullWidth}
|
||||
role='menu'
|
||||
{...otherProps}
|
||||
>
|
||||
{children}
|
||||
|
||||
@@ -49,6 +49,8 @@ const ListItem = ({
|
||||
className={className}
|
||||
style={style}
|
||||
onClick={disabled ? undefined : onClick}
|
||||
role='menuitem'
|
||||
aria-disabled={disabled.toString()}
|
||||
{...otherProps}
|
||||
>
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user