Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add an icon when media has descriptions #14
Following this conversation, here's an implementation of an icon that indicates whether media has accessible descriptions or not. I went with Font Awesome's universal access icon. See below for a screenshot of the feature in action. The icon appears when at least one item in a media gallery has a description, and the icon does not appear if none of the media has descriptions. I tagged the whole thing as
I'm not 100% happy with the CSS, because the icon isn't vertically aligned inside the background box. I believe this is a result of me using a
I'm definitely open to input on this and anything else, what do y'all think?
On mspsocial, @lawremipsum recommends making the icon an actual button and displaying the description over the image when it's clicked. https://mspsocial.net/@lawremipsum/100673132193853838