This is a fantastic module as is, and the only thing that would make it perfect for my needs would be to add options for title and alt text. Title would make the PNG button's function explicitly clear to regular users, which is best practice IMO, and the Alt would do the same thing for the visually impaired.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | hover_text.patch | 3.34 KB | astonvictor |
Comments
Comment #1
nattyweb commentedI agree - it would be a great enhancement to an excellent module!
Comment #2
acke commentedThe image is a background image so it's not possible with alt text. But a title text could be added to the div. It's probably even better to change the background image to a regular image to meet the WCAG guidelines.
Comment #3
swarad07Comment #4
astonvictor commentedHi there.
Try this patch. Added new config field for hover text.
Comment #5
chris matthews commentedpatch in #4 works good for me, but leaving the status as is in case someone else would like to review & test.
Comment #6
astonvictor commentedComment #7
swarad07Comment #8
acke commentedThe div is changed to a button so I don't think it's possible to have a title now.
https://www.drupal.org/project/back_to_top/issues/3077497
I close this, but please open if you find a better approach.