ifad / data-confirm-modal

Makes Rails' link_to confirm: 'foo' build a Bootstrap Modal instead of calling the browser's confirm() API.
MIT License
270 stars 115 forks source link

Add titleClass and titleElement options #98

Closed ailison closed 5 months ago

ailison commented 6 months ago

Added support to change the element for the modal title and it's class. Kept the defaults.

The addition of these is needed for accessibility compliance. Screen readers should read the modal title as different headers and it would be useful to add more classes if needed as well.