Skip to content

Commit

Permalink
Fix alert message hidden under content window (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil K authored Mar 26, 2019
1 parent cfa2978 commit f28597d
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions core/src/Alert.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
<div class="fd-shell__overlay fd-overlay fd-overlay--alert" aria-hiden="false">
<div class="fd-alert fd-alert--{alertTypeMap[settings.type]} fd-alert--dismissible" role="alert" id="j2ALl423"
data-cy="luigi-alert">
<button class="fd-alert__close close-button" on:click="fire('alertDismiss')" aria-label="Close"
aria-controls="j2ALl423" data-cy="luigi-alert-dismiss"></button>
<div
class="fd-alert fd-alert--{alertTypeMap[settings.type]} fd-alert--dismissible"
role="alert"
id="j2ALl423"
data-cy="luigi-alert"
>
<button
class="fd-alert__close close-button"
on:click="fire('alertDismiss')"
aria-label="Close"
aria-controls="j2ALl423"
data-cy="luigi-alert-dismiss"
></button>
{@html settings.text}
</div>
</div>
Expand Down Expand Up @@ -74,4 +83,10 @@
}
}
};
</script>
</script>

<style type="text/scss">
.fd-overlay--alert {
z-index: 1100;
}
</style>

0 comments on commit f28597d

Please sign in to comment.