origam 2.37.15 → 2.37.16
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/CHANGELOG.md
CHANGED
|
@@ -18,6 +18,16 @@ This project follows [Semantic Versioning](https://semver.org).
|
|
|
18
18
|
|
|
19
19
|
## [Unreleased]
|
|
20
20
|
|
|
21
|
+
## [2.37.16] - 2026-10-28
|
|
22
|
+
|
|
23
|
+
### Fixed — `OrigamSelect`, `OrigamColorPickerField`, `OrigamDatePickerField` : plus de nom « Ouvrir » qui écrase un `<label for>` externe (#1251)
|
|
24
|
+
|
|
25
|
+
Sans prop `label`, ces trois champs posaient `aria-label` et `title` au libellé de leur bouton d'ouverture (« Ouvrir ») sur l'`<input>`. Or un `aria-label` passe avant un `<label for>` dans le calcul du nom accessible : un champ nommé par un libellé externe était donc annoncé « Ouvrir ».
|
|
26
|
+
|
|
27
|
+
- Sans `label`, plus aucun `aria-label` ni `title` n'est posé sur l'input. Avec `label`, rien ne change.
|
|
28
|
+
- Rupture assumée, arbitrée par le propriétaire : un champ qui n'a ni `label` ni `<label for>` n'a plus de nom accessible. axe le signale, ce qui alerte quand le libellé a été oublié. Les tests #622/#665/#666, qui figeaient l'ancien repli, ont été réécrits.
|
|
29
|
+
- Vérifié : le TU `select-external-label.spec.ts` couvre les 3 composants. Il contrôle le nom accessible calculé (« Pays ») et passe axe (`label`, `aria-input-field-name`) ; il est rouge sur le parent (3/6) et vert après (6/6) (PR #1270).
|
|
30
|
+
|
|
21
31
|
## [2.37.15] - 2026-10-22
|
|
22
32
|
|
|
23
33
|
### Added — slot de police `display` (#1212)
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
:id="id"
|
|
4
4
|
ref="origamTextFieldRef"
|
|
5
5
|
v-model:focused="isFocused"
|
|
6
|
-
:aria-label="t(
|
|
6
|
+
:aria-label="label ? t(label) : undefined"
|
|
7
7
|
:class="colorPickerFieldClasses"
|
|
8
8
|
:counter-value="counterValue"
|
|
9
9
|
:dirty="isDirty"
|
|
10
10
|
:placeholder="placeholder"
|
|
11
11
|
:style="colorPickerFieldStyles"
|
|
12
|
-
:title="t(
|
|
12
|
+
:title="label ? t(label) : undefined"
|
|
13
13
|
:validation-value="effectiveValidationValue"
|
|
14
14
|
|
|
15
15
|
v-bind="{ ...textFieldProps }"
|
|
@@ -439,12 +439,6 @@ const isDirty = computed(() => {
|
|
|
439
439
|
const placeholder = computed(() => {
|
|
440
440
|
return isDirty.value || !isFocused.value && props.label && !props.persistentPlaceholder ? void 0 : props.placeholder;
|
|
441
441
|
});
|
|
442
|
-
const toggleLabel = computed(() => {
|
|
443
|
-
return menu.value ? props.closeText : props.openText;
|
|
444
|
-
});
|
|
445
|
-
const accessibleLabel = computed(() => {
|
|
446
|
-
return props.label || toggleLabel.value;
|
|
447
|
-
});
|
|
448
442
|
watch(selectedValue, () => {
|
|
449
443
|
isFocused.value = hasSelectedValue.value;
|
|
450
444
|
}, {
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
:id="id"
|
|
4
4
|
ref="origamTextFieldRef"
|
|
5
5
|
v-model:focused="isFocused"
|
|
6
|
-
:aria-label="t(
|
|
6
|
+
:aria-label="label ? t(label) : undefined"
|
|
7
7
|
:class="datePickerFieldClasses"
|
|
8
8
|
:counter-value="counterValue"
|
|
9
9
|
:dirty="isDirty"
|
|
10
10
|
:placeholder="placeholder"
|
|
11
11
|
:style="datePickerFieldStyles"
|
|
12
|
-
:title="t(
|
|
12
|
+
:title="label ? t(label) : undefined"
|
|
13
13
|
:validation-value="effectiveValidationValue"
|
|
14
14
|
|
|
15
15
|
v-bind="{ ...textFieldProps }"
|
|
@@ -545,12 +545,6 @@ const isDirty = computed(() => {
|
|
|
545
545
|
const placeholder = computed(() => {
|
|
546
546
|
return isDirty.value || !isFocused.value && props.label && !props.persistentPlaceholder ? void 0 : props.placeholder;
|
|
547
547
|
});
|
|
548
|
-
const toggleLabel = computed(() => {
|
|
549
|
-
return menu.value ? props.closeText : props.openText;
|
|
550
|
-
});
|
|
551
|
-
const accessibleLabel = computed(() => {
|
|
552
|
-
return props.label || toggleLabel.value;
|
|
553
|
-
});
|
|
554
548
|
const closeOnSelect = computed(() => {
|
|
555
549
|
return props.closeOnSelect && !(props.multiple || props.range);
|
|
556
550
|
});
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
ref="origamTextFieldRef"
|
|
5
5
|
v-model:focused="isFocused"
|
|
6
6
|
v-model:model-value="search"
|
|
7
|
-
:aria-label="t(
|
|
7
|
+
:aria-label="label ? t(label) : undefined"
|
|
8
8
|
:class="selectClasses"
|
|
9
9
|
:counter-value="counterValue"
|
|
10
10
|
:dirty="isDirty"
|
|
11
11
|
:placeholder="placeholder"
|
|
12
12
|
:style="selectStyles"
|
|
13
|
-
:title="t(
|
|
13
|
+
:title="label ? t(label) : undefined"
|
|
14
14
|
:validation-value="effectiveValidationValue"
|
|
15
15
|
v-bind="{ ...textFieldProps, ...comboboxAriaAttrs }"
|
|
16
16
|
@blur="handleBlur"
|
|
@@ -956,12 +956,6 @@ const isDirty = computed(() => {
|
|
|
956
956
|
const placeholder = computed(() => {
|
|
957
957
|
return isDirty.value || !isFocused.value && props.label && !props.persistentPlaceholder ? void 0 : props.placeholder;
|
|
958
958
|
});
|
|
959
|
-
const toggleLabel = computed(() => {
|
|
960
|
-
return menu.value ? props.closeText : props.openText;
|
|
961
|
-
});
|
|
962
|
-
const accessibleLabel = computed(() => {
|
|
963
|
-
return props.label || toggleLabel.value;
|
|
964
|
-
});
|
|
965
959
|
const selectStyles = computed(() => {
|
|
966
960
|
return [
|
|
967
961
|
props.style
|