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: sortable table #391

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

feat: sortable table #391

wants to merge 7 commits into from

Conversation

ppvg
Copy link
Member

@ppvg ppvg commented Oct 2, 2023

This PR proposes an improved sortable table and implements an interactive example. N.B.: the example implementation is purely demonstrative and not meant to be used by consumers of Manon, as sortable data is quite context-sensitive.

The approach in this PR turns out to match up with the ARIA APG Sortable Table Example.

Things yet to consider and possibly address in the docs:

  • Adding a negative margin-left to the <th> button to ensure its text aligns with table cell text.
  • Pagination, sorting across pages (how to communicate that effectively & accessibly).
  • Possibly using an aria-live region to announce e.g. "table sorted by column ascending/descending".

I've published an interactive demo of this approach here: https://sortable-table-demo.netlify.app/.

ppvg and others added 2 commits October 16, 2023 17:41
Co-authored-by: Rick Lambrechts <rick@rl-webdiensten.nl>
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.

None yet

3 participants