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

refactor!: Drop SortDirection::Unsorted #391

Merged
merged 1 commit into from
Apr 29, 2024
Merged

refactor!: Drop SortDirection::Unsorted #391

merged 1 commit into from
Apr 29, 2024

Conversation

mwcampbell
Copy link
Contributor

This continues the pattern of eliminating states that don't have a clear meaning. In this case, according to the MDN documentation for aria-sort, the default value for that ARIA property is none. This means that specifying aria-sort="none" is synonymous with not specifying it at all. So, like other AccessKit enums such as AutoComplete, I think it's best to not have a None value, which is what SortDirection::Unsorted really is; instead, the user just shouldn't set the property at all.

@DataTriny DataTriny merged commit b86f484 into main Apr 29, 2024
10 checks passed
@DataTriny DataTriny deleted the drop-unsorted branch April 29, 2024 10:16
@mwcampbell mwcampbell mentioned this pull request Apr 29, 2024
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

2 participants