On my current project, I'm using Bootstrap 5.3 modals to give feedback to the user that their action has yielded some results. The question I'm having is, should I use aria-hidden="true"
alongside aria-modal="true"
or is aria-modal="true"
good enough for users that use assistive technologies (though that is unlikely in this project, but I'm asking for future projects). Below is my modal's HTML as I have it right now.
<div class="modal fade" id="profile-update" tabindex="-1" aria-labelledby="profileUpdated" aria-hidden="true" aria-modal="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="profileUpdated">Profile Updated</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body bg-white">
<p>Your profile has being successfully updated.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-success" data-bs-dismiss="modal">Thank You</button>
</div>
</div>
</div>
</div>