Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It occurred to me while reviewing #587 that if you're using a screen reader, you don't get any of the information provided by the badges. This doesn't seem ideal, given that information is what you're likely to use to decide which crate is more actively updated!
This PR replaces the alt text for the badges with equivalent information sourced from the APIs, and removes the
aria-hidden
attribute so that screen readers won't ignore them.This could also help with #580, as we now have the information we'd need to sort by.
I haven't added this functionality to the license badge (yet), as the Crates.io API doesn't make that super easy to obtain (you have to fetch all the crate versions, then pick the license from the one matching
latest_version
). I can think of three approachs to sort this:crates
sourced items, but again, it might get us rate limited).