usnationalarchives / nara-ugfa

NARA User Generated Finding Aids Prototype
1 stars 0 forks source link

Each a element must contain text or an img with an alt attribute. #202

Closed lfrancis closed 4 years ago

lfrancis commented 4 years ago

Each a element must contain text or an img with an alt attribute. WCAG 2.0 A F89 Section 508 (2017) A F89 1 pages A link name allows screen readers to voice what the links does. If there is no link text or the alt text is blank, screen readers have nothing to read, so read out the URL instead. To add a name do one of the following:

Add text between the a element start and end tags Add an aria-label attribute Add an aria-labelledby attribute Add an img alt attribute if the link contains an img element

https://nara-ugfa.herokuapp.com/guides/3 Line 550

<a href="https://catalog.archives.gov/id/null"></a>(Most Recent)

danielboggs commented 4 years ago

@lfrancis this actually ended up exposing a bug with creators information being improperly integrated on Series descriptions. This should be updated now.

lfrancis commented 4 years ago

Confirmed addressed