@vaadin/side-nav 24.3.0-alpha5 → 24.3.0-alpha6
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/side-nav",
|
|
3
|
-
"version": "24.3.0-
|
|
3
|
+
"version": "24.3.0-alpha6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"web-component"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@vaadin/component-base": "24.3.0-
|
|
38
|
-
"@vaadin/vaadin-lumo-styles": "24.3.0-
|
|
39
|
-
"@vaadin/vaadin-material-styles": "24.3.0-
|
|
40
|
-
"@vaadin/vaadin-themable-mixin": "24.3.0-
|
|
37
|
+
"@vaadin/component-base": "24.3.0-alpha6",
|
|
38
|
+
"@vaadin/vaadin-lumo-styles": "24.3.0-alpha6",
|
|
39
|
+
"@vaadin/vaadin-material-styles": "24.3.0-alpha6",
|
|
40
|
+
"@vaadin/vaadin-themable-mixin": "24.3.0-alpha6",
|
|
41
41
|
"lit": "^3.0.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"web-types.json",
|
|
51
51
|
"web-types.lit.json"
|
|
52
52
|
],
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "2721ab38ba3bc7d38dc1241016915354617ff659"
|
|
54
54
|
}
|
|
@@ -8,6 +8,11 @@ import { fieldButton } from '@vaadin/vaadin-lumo-styles/mixins/field-button.js';
|
|
|
8
8
|
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
9
9
|
|
|
10
10
|
export const sideNavItemStyles = css`
|
|
11
|
+
:host {
|
|
12
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
13
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
14
|
+
}
|
|
15
|
+
|
|
11
16
|
[part='link'] {
|
|
12
17
|
width: 100%;
|
|
13
18
|
gap: var(--lumo-space-xs);
|
|
@@ -74,7 +79,7 @@ export const sideNavItemStyles = css`
|
|
|
74
79
|
[part='link']:focus-visible,
|
|
75
80
|
[part='toggle-button']:focus-visible {
|
|
76
81
|
border-radius: var(--lumo-border-radius-m);
|
|
77
|
-
box-shadow: 0 0 0
|
|
82
|
+
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
78
83
|
}
|
|
79
84
|
}
|
|
80
85
|
|
|
@@ -110,7 +115,7 @@ export const sideNavItemStyles = css`
|
|
|
110
115
|
|
|
111
116
|
:host([current]) [part='content'] {
|
|
112
117
|
background-color: var(--lumo-primary-color-10pct);
|
|
113
|
-
color: var(--lumo-primary-text-color);
|
|
118
|
+
color: var(--vaadin-selection-color-text, var(--lumo-primary-text-color));
|
|
114
119
|
border-radius: var(--lumo-border-radius-m);
|
|
115
120
|
}
|
|
116
121
|
`;
|
|
@@ -14,6 +14,8 @@ export const sideNavStyles = css`
|
|
|
14
14
|
line-height: var(--lumo-line-height-xs);
|
|
15
15
|
color: var(--lumo-body-text-color);
|
|
16
16
|
-webkit-tap-highlight-color: transparent;
|
|
17
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
18
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
[part='label'] {
|
|
@@ -35,7 +37,7 @@ export const sideNavStyles = css`
|
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
:host([focus-ring]) [part='label'] {
|
|
38
|
-
box-shadow: 0 0 0
|
|
40
|
+
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
[part='toggle-button'] {
|
package/web-types.json
CHANGED