@vaadin/radio-group 24.1.0-alpha3 → 24.1.0-alpha5
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/radio-group",
|
|
3
|
-
"version": "24.1.0-
|
|
3
|
+
"version": "24.1.0-alpha5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@polymer/polymer": "^3.0.0",
|
|
41
|
-
"@vaadin/a11y-base": "24.1.0-
|
|
42
|
-
"@vaadin/component-base": "24.1.0-
|
|
43
|
-
"@vaadin/field-base": "24.1.0-
|
|
44
|
-
"@vaadin/vaadin-lumo-styles": "24.1.0-
|
|
45
|
-
"@vaadin/vaadin-material-styles": "24.1.0-
|
|
46
|
-
"@vaadin/vaadin-themable-mixin": "24.1.0-
|
|
41
|
+
"@vaadin/a11y-base": "24.1.0-alpha5",
|
|
42
|
+
"@vaadin/component-base": "24.1.0-alpha5",
|
|
43
|
+
"@vaadin/field-base": "24.1.0-alpha5",
|
|
44
|
+
"@vaadin/vaadin-lumo-styles": "24.1.0-alpha5",
|
|
45
|
+
"@vaadin/vaadin-material-styles": "24.1.0-alpha5",
|
|
46
|
+
"@vaadin/vaadin-themable-mixin": "24.1.0-alpha5"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@esm-bundle/chai": "^4.3.4",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"web-types.json",
|
|
55
55
|
"web-types.lit.json"
|
|
56
56
|
],
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "1ab6c977fe239d94aac5f39940c1a4722ad4bb63"
|
|
58
58
|
}
|
|
@@ -99,6 +99,9 @@ class RadioButton extends LabelMixin(
|
|
|
99
99
|
[part='radio'] {
|
|
100
100
|
width: var(--vaadin-radio-button-size, 1em);
|
|
101
101
|
height: var(--vaadin-radio-button-size, 1em);
|
|
102
|
+
--_input-border-width: var(--vaadin-input-field-border-width, 0);
|
|
103
|
+
--_input-border-color: var(--vaadin-input-field-border-color, transparent);
|
|
104
|
+
box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
|
|
102
105
|
}
|
|
103
106
|
|
|
104
107
|
[part='radio']::before {
|
|
@@ -39,6 +39,8 @@ registerStyles(
|
|
|
39
39
|
transition: transform 0.2s cubic-bezier(0.12, 0.32, 0.54, 2), background-color 0.15s;
|
|
40
40
|
will-change: transform;
|
|
41
41
|
cursor: var(--lumo-clickable-cursor);
|
|
42
|
+
/* Default field border color */
|
|
43
|
+
--_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
/* Used for activation "halo" */
|
|
@@ -73,6 +75,10 @@ registerStyles(
|
|
|
73
75
|
background-clip: content-box;
|
|
74
76
|
}
|
|
75
77
|
|
|
78
|
+
:host([checked]) {
|
|
79
|
+
--vaadin-input-field-border-color: transparent;
|
|
80
|
+
}
|
|
81
|
+
|
|
76
82
|
:host([checked]) [part='radio'] {
|
|
77
83
|
background-color: var(--lumo-primary-color);
|
|
78
84
|
}
|
|
@@ -101,12 +107,14 @@ registerStyles(
|
|
|
101
107
|
}
|
|
102
108
|
|
|
103
109
|
:host([focus-ring]) [part='radio'] {
|
|
104
|
-
box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct)
|
|
110
|
+
box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct),
|
|
111
|
+
inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
|
|
105
112
|
}
|
|
106
113
|
|
|
107
114
|
:host([disabled]) {
|
|
108
115
|
pointer-events: none;
|
|
109
116
|
color: var(--lumo-disabled-text-color);
|
|
117
|
+
--vaadin-input-field-border-color: var(--lumo-contrast-20pct);
|
|
110
118
|
}
|
|
111
119
|
|
|
112
120
|
:host([disabled]) ::slotted(label) {
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/radio-group",
|
|
4
|
-
"version": "24.1.0-
|
|
4
|
+
"version": "24.1.0-alpha5",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -209,6 +209,28 @@
|
|
|
209
209
|
]
|
|
210
210
|
}
|
|
211
211
|
},
|
|
212
|
+
{
|
|
213
|
+
"name": "accessible-name",
|
|
214
|
+
"description": "String used to label the component to screen reader users.",
|
|
215
|
+
"value": {
|
|
216
|
+
"type": [
|
|
217
|
+
"string",
|
|
218
|
+
"null",
|
|
219
|
+
"undefined"
|
|
220
|
+
]
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"name": "accessible-name-ref",
|
|
225
|
+
"description": "Id of the element used as label of the component to screen reader users.",
|
|
226
|
+
"value": {
|
|
227
|
+
"type": [
|
|
228
|
+
"string",
|
|
229
|
+
"null",
|
|
230
|
+
"undefined"
|
|
231
|
+
]
|
|
232
|
+
}
|
|
233
|
+
},
|
|
212
234
|
{
|
|
213
235
|
"name": "value",
|
|
214
236
|
"description": "The value of the radio group.",
|
|
@@ -307,6 +329,28 @@
|
|
|
307
329
|
]
|
|
308
330
|
}
|
|
309
331
|
},
|
|
332
|
+
{
|
|
333
|
+
"name": "accessibleName",
|
|
334
|
+
"description": "String used to label the component to screen reader users.",
|
|
335
|
+
"value": {
|
|
336
|
+
"type": [
|
|
337
|
+
"string",
|
|
338
|
+
"null",
|
|
339
|
+
"undefined"
|
|
340
|
+
]
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"name": "accessibleNameRef",
|
|
345
|
+
"description": "Id of the element used as label of the component to screen reader users.",
|
|
346
|
+
"value": {
|
|
347
|
+
"type": [
|
|
348
|
+
"string",
|
|
349
|
+
"null",
|
|
350
|
+
"undefined"
|
|
351
|
+
]
|
|
352
|
+
}
|
|
353
|
+
},
|
|
310
354
|
{
|
|
311
355
|
"name": "value",
|
|
312
356
|
"description": "The value of the radio group.",
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/radio-group",
|
|
4
|
-
"version": "24.1.0-
|
|
4
|
+
"version": "24.1.0-alpha5",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -124,6 +124,20 @@
|
|
|
124
124
|
"kind": "expression"
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
|
+
{
|
|
128
|
+
"name": ".accessibleName",
|
|
129
|
+
"description": "String used to label the component to screen reader users.",
|
|
130
|
+
"value": {
|
|
131
|
+
"kind": "expression"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": ".accessibleNameRef",
|
|
136
|
+
"description": "Id of the element used as label of the component to screen reader users.",
|
|
137
|
+
"value": {
|
|
138
|
+
"kind": "expression"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
127
141
|
{
|
|
128
142
|
"name": ".value",
|
|
129
143
|
"description": "The value of the radio group.",
|