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

EES-5587 refactor reordering filters and indicators #5462

Merged
merged 1 commit into from
Dec 19, 2024
Merged

Conversation

amyb-hiveit
Copy link
Collaborator

Adds a new component for reordering nested lists which uses the accessible ReorderableList component.

Implements it for reordering filters and indicators.

Screenshot 2024-12-12 162858

Copy link
Collaborator

@bennettstuart bennettstuart left a comment

Choose a reason for hiding this comment

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

That's ace!

One thought I did have is around general list items, as to whether the move up/down buttons should be enabled/disabled instead of conditionally rendered. I kept making mistakes when clicking the move buttons because the position of the button would be different after moving an item out of the first/last position - hope this makes sense, be happy to hear your thoughts.

@amyb-hiveit
Copy link
Collaborator Author

That's ace!

One thought I did have is around general list items, as to whether the move up/down buttons should be enabled/disabled instead of conditionally rendered. I kept making mistakes when clicking the move buttons because the position of the button would be different after moving an item out of the first/last position - hope this makes sense, be happy to hear your thoughts.

Yeah I get what you mean, there are accessibility issues with disabled buttons though and GDS say:

Disabled buttons have poor contrast and can confuse some users, so avoid them if possible. Only use disabled buttons if research shows it makes the user interface easier to understand.
https://design-system.service.gov.uk/components/button/

So it might be good to get some feedback from users on this @cjrace

@amyb-hiveit amyb-hiveit merged commit bb42748 into dev Dec 19, 2024
8 checks passed
@amyb-hiveit amyb-hiveit deleted the EES-5587 branch December 19, 2024 09:57
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.

2 participants