mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
refactor(modal): alert dialog props conditional
This commit is contained in:
parent
5dc57a0b00
commit
822125f508
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue