To make your website's push subscription prompt more accessible, you can give its icon alternative text (ALT text) so screen readers can describe it.
The iconAlt parameter belongs to the custom subscription popup. It is set directly inside the subscribePopup object of your init call — there is no options sub-object, and subscribeWidget (the bell button) does not accept iconUrl/iconAlt at all.
Pushwoosh.push(['init', {
applicationCode: 'XXXXX-XXXXX',
// ... other general initialization options ...
subscribePopup: {
enable: true, // show the custom subscription popup
text: 'Subscribe to our notifications',
confirmSubscriptionButtonText: 'Subscribe',
askLaterButtonText: 'Later',
iconUrl: 'https://your-website.com/path/to/your-icon.png', // popup icon
iconAlt: 'Company logo' // <-- ALT text for that icon
}
}]);
To implement this:
- Locate your Pushwoosh initialization script on your website.
- Inside the
Pushwoosh.push(['init', { ... }])call, find (or add) thesubscribePopupobject. - Add
iconAltnext toiconUrl, at the same level asenableandtext. - Set
iconAltto a concise, meaningful description of the icon.
If iconAlt is omitted, the SDK falls back to the alt text "Subscribe".
Full parameter list: Custom subscription popup.
Comments
0 comments
Please sign in to leave a comment.