accessibility_label_for_image doesn't require a11y label with Image(systemName:) #5165
Closed
2 tasks done
Labels
enhancement
Ideas for improvements of existing features and rules.
good first issue
Issue to be taken up by new contributors yet unfamiliar with the project.
New Issue Checklist
Describe the bug
When opting in to use
accessibility_label_for_image
, I would expect to get a warning every time a default accessibility label is used, but there's no warning for missing labels when the image is an SF Symbol.While this is documented behaviour in the rules, I consider it a bug because the rule is opt-in for people who want to have better accessibility labels and just describing the icon is not generally a good label.
It is true that some SF Symbols have default accessibility labels, like how
plus
has the default label "Add", many others simply fall back to the name of the icon, likeclock.arrow.circlepath
.If others disagree, this might just be a feature request to allow us to also require a11y labels when
Image(systemName:)
is used.The text was updated successfully, but these errors were encountered: