As per https://getbootstrap.com/docs/4.6/components/modal/#via-data-attributes, either data-target or href can be used to trigger a modal. Since we're using a as the trigger, changing to href will add keyboard accessibility by default, remove the need for tabindex, and retain click behavior.
As per https://getbootstrap.com/docs/4.6/components/modal/#via-data-attributes, either
data-target
orhref
can be used to trigger a modal. Since we're usinga
as the trigger, changing tohref
will add keyboard accessibility by default, remove the need fortabindex
, and retain click behavior.