@brightspace-ui/core 1.219.2 → 1.219.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/alert/README.md +18 -2
- package/package.json +1 -1
|
@@ -116,11 +116,27 @@ a pop-up at the bottom of the screen that automatically dismisses itself by defa
|
|
|
116
116
|
<!-- docs: demo live name:d2l-alert-toast autoSize:false -->
|
|
117
117
|
```html
|
|
118
118
|
<script type="module">
|
|
119
|
-
|
|
119
|
+
import '@brightspace-ui/core/components/alert/alert-toast.js';
|
|
120
|
+
import '@brightspace-ui/core/components/button/button.js';
|
|
120
121
|
</script>
|
|
122
|
+
<!-- docs: start hidden content -->
|
|
123
|
+
<script type="module">
|
|
124
|
+
var alertToast = document.querySelector('d2l-alert-toast');
|
|
125
|
+
var button = document.querySelector('#open');
|
|
126
|
+
|
|
127
|
+
alertToast.addEventListener('d2l-alert-toast-close', function() {
|
|
128
|
+
button.style.display = 'block';
|
|
129
|
+
});
|
|
121
130
|
|
|
131
|
+
button.addEventListener('click', () => {
|
|
132
|
+
alertToast.open = true;
|
|
133
|
+
button.style.display = 'none';
|
|
134
|
+
});
|
|
135
|
+
</script>
|
|
136
|
+
<d2l-button id="open" style="align-self:center;display:none;">Show Alert</d2l-button>
|
|
137
|
+
<!-- docs: end hidden content -->
|
|
122
138
|
<d2l-alert-toast type="default" no-auto-close open>
|
|
123
|
-
|
|
139
|
+
A default toast alert.
|
|
124
140
|
</d2l-alert-toast>
|
|
125
141
|
```
|
|
126
142
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "1.219.
|
|
3
|
+
"version": "1.219.3",
|
|
4
4
|
"description": "A collection of accessible, free, open-source web components for building Brightspace applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://github.com/BrightspaceUI/core.git",
|