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

Add contentDescription to all relevant components #470

Merged
merged 5 commits into from
Jun 12, 2023

Conversation

pipe01
Copy link
Contributor

@pipe01 pipe01 commented Jun 9, 2023

Hopefully I didn't miss anything. There are still some components with contentDescription = null because they don't represent anything by themselves and/or don't have any actions, for example the icons in settings menu items.

Fixes #175.

@dessalines
Copy link
Member

This will have to come after #447 so you'll probably have to merge from therei

@shortwavesurfer2009
Copy link

shortwavesurfer2009 commented Jun 9, 2023

Some of the strings seem a bit wordy. For the bottomBar may i suggest "Home" "Communities" "Notifications" "Bookmarks" and "Profile"?

Otherwise this looks fantastic

Edit: the personProfile_viewAvatar and personProfile_viewBanner should likely say " Avatar image" and "Banner image" unless i am misunderstanding and they are buttons.

@dessalines
Copy link
Member

#447 is merged now, so you can merge from main.

I'll make sure to grep for all those contentDescriptions to make sure we've got them all before I approve.

@pipe01
Copy link
Contributor Author

pipe01 commented Jun 9, 2023

There are some conflicts where #447 adds a specific key and I have added a more generic one (e.g. create_report_back vs goBack), which should I keep?

Also for @shortwavesurfer2009's comment, I'm not sure which way would be best so it's up to @dessalines.

@pipe01
Copy link
Contributor Author

pipe01 commented Jun 9, 2023

the personProfile_viewAvatar and personProfile_viewBanner should likely say " Avatar image" and "Banner image" unless i am misunderstanding and they are buttons

They open up the image in the image viewer when pressed, so they kinda are buttons.

@dessalines
Copy link
Member

goBack is probably fine.

They open up the image in the image viewer when pressed, so they kinda are buttons.

I'm good either way, I don't know if there's a convention for image buttons, but the word button seems fine.

I imagine most of the strings already exist in strings.xml, so only create new ones if its really necessary. I leave the rest up to you.

@pipe01
Copy link
Contributor Author

pipe01 commented Jun 9, 2023

Should be good now.

Copy link
Member

@dessalines dessalines left a comment

Choose a reason for hiding this comment

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

Found a few more:

  • AppBars L75
  • DrawerItem: 59
  • Several in the pictrsimage file.
  • A bunch that were set to null

Do a Find in Files and search for contentDescription to get the rest of them.

@pipe01
Copy link
Contributor Author

pipe01 commented Jun 10, 2023

Most of them are set to null on purpose, I'm thinking of adding some constant that's set to null to indicate that it's unnecessary.

@pipe01
Copy link
Contributor Author

pipe01 commented Jun 12, 2023

Is there anything blocking this?

@twizmwazin
Copy link
Contributor

@pipe01 If you can fix the merge conflicts I'll merge it right away

@pipe01
Copy link
Contributor Author

pipe01 commented Jun 12, 2023

Done

@twizmwazin twizmwazin merged commit 14cf129 into LemmyNet:main Jun 12, 2023
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.

Accessibility: many things read as "todo" with talkback
4 participants