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

fix: Improve accessibility of ComposeActivity bottomsheets and buttons #548

Merged
merged 1 commit into from Mar 21, 2024

Conversation

nikclayton
Copy link
Contributor

The previous bottomsheets did set a minimum height for the menu items, so they were less than the recommended 48dp minimum. Fix that to improve the overall accessibility.

Always highlight the "visibilty" icon, to make it clear that it's something that is set (even if to the default).

Show the visibility icon on the "Toot" button as an additional reminder to the user.

Other changes:

  • Use the "filled" style for all icons (the visibility icons had the "outlined" style)

  • Use the makeIcon helper function.

  • Use the Status.Visibility extension functions to determine the icon for each visibility type, reducing code duplication.

The previous bottomsheets did set a minimum height for the menu items,
so they were less than the recommended 48dp minimum. Fix that to
improve the overall accessibility.

Always highlight the "visibilty" icon, to make it clear that it's
something that is set (even if to the default).

Show the visibility icon on the "Toot" button as an additional reminder
to the user.

Other changes:

- Use the "filled" style for all icons (the visibility icons had the
  "outlined" style)

- Use the `makeIcon` helper function.

- Use the `Status.Visibility` extension functions to determine the
  icon for each visibility type, reducing code duplication.
@nikclayton nikclayton merged commit 8ef227f into main Mar 21, 2024
6 checks passed
@nikclayton nikclayton deleted the compose-activity-bottom-sheet-margins branch March 21, 2024 15:24
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

1 participant