refactor(modal): alert dialog props conditional

This commit is contained in:
josefaidt 2020-09-22 10:09:40 -05:00
commit 822125f508

View file

@ -161,7 +161,8 @@
$: if (alert) { $: if (alert) {
if (passiveModal) { if (passiveModal) {
alertDialogProps.role = "alert"; alertDialogProps.role = "alert";
} else if (!passiveModal) { }
if (!passiveModal) {
alertDialogProps.role = "alertdialog"; alertDialogProps.role = "alertdialog";
alertDialogProps["aria-describedby"] = modalBodyId; alertDialogProps["aria-describedby"] = modalBodyId;
} }