ifad / data-confirm-modal

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

Add titleClass and titleElement options #98

Closed ailison closed 4 months ago

ailison commented 4 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.