Hey we wanted to show a donation link on our website for BLM..and then thought this widget can be useful for others too. You can customise the donation link, title and description to make it fit your needs. The code is free for anyone to grab and reuse
?makers are we able to add an image ALT text for the badge icon? ADA compliance tool says Image elements do not have [alt] attributes: img.maker-badge__btn-img -Thanks for a great widget!
@engin_beri added this now. The default alt text is "Black Lives Matter Badge" - you can customise the alt text by using the new imageAlt setting in the options:
imageAlt: "Black Lives Matter Badge"
added to the readme here: https://github.com/GraemeFulton/...
- you may have to refresh and clear your cache to pick up that update!
Thanks for sharing this, just added to my site!
If anyone's adding this to a site with Bootstrap 3, you might see the text appear smaller than expected (because the badge uses .rem). I worked around this by adding a global font-size to my css:
html {
font-size: 16px;
}
Prototypr
Prototypr
Prototypr
Prototypr
Speaker Alert
Prototypr