@vaadin/notification 24.0.5 → 24.1.0-alpha10
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/README.md +2 -2
- package/package.json +8 -9
- package/src/vaadin-notification.js +6 -0
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ A web component for providing feedback to the user.
|
|
|
19
19
|
</script>
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
[<img src="https://raw.githubusercontent.com/vaadin/web-components/
|
|
22
|
+
[<img src="https://raw.githubusercontent.com/vaadin/web-components/main/packages/notification/screenshot.png" width="336" alt="Screenshot of vaadin-notification">](https://vaadin.com/docs/latest/components/notification)
|
|
23
23
|
|
|
24
24
|
## Installation
|
|
25
25
|
|
|
@@ -38,7 +38,7 @@ import '@vaadin/notification';
|
|
|
38
38
|
## Themes
|
|
39
39
|
|
|
40
40
|
Vaadin components come with two built-in [themes](https://vaadin.com/docs/latest/styling), Lumo and Material.
|
|
41
|
-
The [main entrypoint](https://github.com/vaadin/web-components/blob/
|
|
41
|
+
The [main entrypoint](https://github.com/vaadin/web-components/blob/main/packages/notification/vaadin-notification.js) of the package uses the Lumo theme.
|
|
42
42
|
|
|
43
43
|
To use the Material theme, import the component from the `theme/material` folder:
|
|
44
44
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/notification",
|
|
3
|
-
"version": "24.0
|
|
3
|
+
"version": "24.1.0-alpha10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -38,17 +38,16 @@
|
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@polymer/polymer": "^3.0.0",
|
|
41
|
-
"@vaadin/component-base": "
|
|
42
|
-
"@vaadin/lit-renderer": "
|
|
43
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
44
|
-
"@vaadin/vaadin-material-styles": "
|
|
45
|
-
"@vaadin/vaadin-themable-mixin": "
|
|
41
|
+
"@vaadin/component-base": "24.1.0-alpha10",
|
|
42
|
+
"@vaadin/lit-renderer": "24.1.0-alpha10",
|
|
43
|
+
"@vaadin/vaadin-lumo-styles": "24.1.0-alpha10",
|
|
44
|
+
"@vaadin/vaadin-material-styles": "24.1.0-alpha10",
|
|
45
|
+
"@vaadin/vaadin-themable-mixin": "24.1.0-alpha10",
|
|
46
46
|
"lit": "^2.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@esm-bundle/chai": "^4.3.4",
|
|
50
|
-
"@vaadin/button": "
|
|
51
|
-
"@vaadin/polymer-legacy-adapter": "~24.0.5",
|
|
50
|
+
"@vaadin/button": "24.1.0-alpha10",
|
|
52
51
|
"@vaadin/testing-helpers": "^0.4.0",
|
|
53
52
|
"sinon": "^13.0.2"
|
|
54
53
|
},
|
|
@@ -56,5 +55,5 @@
|
|
|
56
55
|
"web-types.json",
|
|
57
56
|
"web-types.lit.json"
|
|
58
57
|
],
|
|
59
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "12e39be7eb3b49c68708e8ca3de2fb22e91051a1"
|
|
60
59
|
}
|
|
@@ -181,6 +181,12 @@ class NotificationCard extends ThemableMixin(PolymerElement) {
|
|
|
181
181
|
[part='overlay'] {
|
|
182
182
|
pointer-events: auto;
|
|
183
183
|
}
|
|
184
|
+
|
|
185
|
+
@media (forced-colors: active) {
|
|
186
|
+
[part='overlay'] {
|
|
187
|
+
outline: 3px solid;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
184
190
|
</style>
|
|
185
191
|
|
|
186
192
|
<div part="overlay">
|
package/web-types.json
CHANGED