Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ListItem - minor updates to api and default behaviour #233

Merged
merged 17 commits into from
Feb 7, 2025

Conversation

allinox
Copy link
Contributor

@allinox allinox commented Jan 31, 2025

Description

Fixed link icon as chevron and made it default to not visible to make the component easier to use. Made listBase and ListItemBase into ul and li elements respectably to inform screen readers of their roles

Note: There are some accessibility issues with this component as it stands right now. Mainly due to the expanded state, and the appearance/disappearance of the button that opens it. Fixing this though, will require deeper changes in the ListItem component and it's structure, which should probably be discussed and made together with the change in click-area with control actions.

Related Issue(s)

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Relevant automated test added (if you find this hard, leave it and we'll help out)
  • All tests run green

Documentation

  • User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)

@allinox allinox marked this pull request as ready for review February 5, 2025 14:39
@allinox allinox requested review from sonwit and seanes February 7, 2025 08:21
lib/components/List/List.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@sonwit sonwit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work on updating the list-item component.
I have left some comments, but no show-stoppers imo 👍🏼
Approved ✅

@seanes
Copy link
Collaborator

seanes commented Feb 7, 2025

Great work @allinox 🥳 👍 - Just a minor comment on moving basic props to ListItemBase but LGTM!

@seanes seanes self-requested a review February 7, 2025 11:33
@allinox allinox merged commit e6aaed0 into main Feb 7, 2025
4 checks passed
@allinox allinox deleted the feat/update-list-item-component branch February 7, 2025 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants