@porsche-design-system/components-vue 4.7.0 → 4.8.0-rc.1

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.
Files changed (106) hide show
  1. package/CHANGELOG.md +94 -1
  2. package/cjs/lib/components/CheckboxWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  3. package/cjs/lib/components/InputDateWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  4. package/cjs/lib/components/InputEmailWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  5. package/cjs/lib/components/InputMonthWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  6. package/cjs/lib/components/InputNumberWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  7. package/cjs/lib/components/InputPasswordWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  8. package/cjs/lib/components/InputTelWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  9. package/cjs/lib/components/InputTextWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  10. package/cjs/lib/components/InputTimeWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  11. package/cjs/lib/components/InputUrlWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  12. package/cjs/lib/components/InputWeekWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  13. package/cjs/lib/components/MultiSelectWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  14. package/cjs/lib/components/SelectWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  15. package/cjs/lib/components/SwitchWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  16. package/cjs/lib/components/TextareaWrapper.vue_vue_type_script_setup_true_lang.cjs +1 -1
  17. package/esm/lib/components/CheckboxWrapper.vue.d.ts +5 -1
  18. package/esm/lib/components/CheckboxWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  19. package/esm/lib/components/InputDateWrapper.vue.d.ts +5 -1
  20. package/esm/lib/components/InputDateWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  21. package/esm/lib/components/InputEmailWrapper.vue.d.ts +5 -1
  22. package/esm/lib/components/InputEmailWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  23. package/esm/lib/components/InputMonthWrapper.vue.d.ts +5 -1
  24. package/esm/lib/components/InputMonthWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  25. package/esm/lib/components/InputNumberWrapper.vue.d.ts +5 -1
  26. package/esm/lib/components/InputNumberWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  27. package/esm/lib/components/InputPasswordWrapper.vue.d.ts +5 -1
  28. package/esm/lib/components/InputPasswordWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  29. package/esm/lib/components/InputSearchWrapper.vue.d.ts +1 -1
  30. package/esm/lib/components/InputTelWrapper.vue.d.ts +5 -1
  31. package/esm/lib/components/InputTelWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  32. package/esm/lib/components/InputTextWrapper.vue.d.ts +5 -1
  33. package/esm/lib/components/InputTextWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  34. package/esm/lib/components/InputTimeWrapper.vue.d.ts +5 -1
  35. package/esm/lib/components/InputTimeWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  36. package/esm/lib/components/InputUrlWrapper.vue.d.ts +5 -1
  37. package/esm/lib/components/InputUrlWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  38. package/esm/lib/components/InputWeekWrapper.vue.d.ts +5 -1
  39. package/esm/lib/components/InputWeekWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  40. package/esm/lib/components/LinkPureWrapper.vue.d.ts +1 -1
  41. package/esm/lib/components/LinkTileProductWrapper.vue.d.ts +1 -1
  42. package/esm/lib/components/LinkWrapper.vue.d.ts +1 -1
  43. package/esm/lib/components/MultiSelectWrapper.vue.d.ts +5 -1
  44. package/esm/lib/components/MultiSelectWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  45. package/esm/lib/components/SelectWrapper.vue.d.ts +5 -1
  46. package/esm/lib/components/SelectWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  47. package/esm/lib/components/SwitchWrapper.vue.d.ts +5 -1
  48. package/esm/lib/components/SwitchWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  49. package/esm/lib/components/TextareaWrapper.vue.d.ts +5 -1
  50. package/esm/lib/components/TextareaWrapper.vue_vue_type_script_setup_true_lang.mjs +1 -0
  51. package/esm/lib/types.d.ts +22 -1
  52. package/package.json +2 -2
  53. package/skills/pds-audit-deprecations-vue/SKILL.md +2 -2
  54. package/skills/pds-knowledge-vue/SKILL.md +13 -4
  55. package/skills/pds-knowledge-vue/references/components/p-carousel/examples/DynamicSlides.vue +1 -0
  56. package/skills/pds-knowledge-vue/references/components/p-carousel/examples/FocusOnCenterSlide.vue +1 -0
  57. package/skills/pds-knowledge-vue/references/components/p-carousel/examples/JumpToSlide.vue +1 -0
  58. package/skills/pds-knowledge-vue/references/components/p-checkbox/accessibility.md +14 -0
  59. package/skills/pds-knowledge-vue/references/components/p-checkbox/p-checkbox.md +12 -0
  60. package/skills/pds-knowledge-vue/references/components/p-input-date/accessibility.md +14 -0
  61. package/skills/pds-knowledge-vue/references/components/p-input-date/p-input-date.md +12 -0
  62. package/skills/pds-knowledge-vue/references/components/p-input-email/accessibility.md +14 -0
  63. package/skills/pds-knowledge-vue/references/components/p-input-email/p-input-email.md +12 -0
  64. package/skills/pds-knowledge-vue/references/components/p-input-month/accessibility.md +14 -0
  65. package/skills/pds-knowledge-vue/references/components/p-input-month/p-input-month.md +12 -0
  66. package/skills/pds-knowledge-vue/references/components/p-input-number/accessibility.md +14 -0
  67. package/skills/pds-knowledge-vue/references/components/p-input-number/p-input-number.md +12 -0
  68. package/skills/pds-knowledge-vue/references/components/p-input-password/accessibility.md +14 -0
  69. package/skills/pds-knowledge-vue/references/components/p-input-password/p-input-password.md +12 -0
  70. package/skills/pds-knowledge-vue/references/components/p-input-search/p-input-search.md +2 -1
  71. package/skills/pds-knowledge-vue/references/components/p-input-tel/accessibility.md +14 -0
  72. package/skills/pds-knowledge-vue/references/components/p-input-tel/p-input-tel.md +12 -0
  73. package/skills/pds-knowledge-vue/references/components/p-input-text/accessibility.md +14 -0
  74. package/skills/pds-knowledge-vue/references/components/p-input-text/p-input-text.md +12 -0
  75. package/skills/pds-knowledge-vue/references/components/p-input-time/accessibility.md +14 -0
  76. package/skills/pds-knowledge-vue/references/components/p-input-time/p-input-time.md +12 -0
  77. package/skills/pds-knowledge-vue/references/components/p-input-url/accessibility.md +14 -0
  78. package/skills/pds-knowledge-vue/references/components/p-input-url/p-input-url.md +12 -0
  79. package/skills/pds-knowledge-vue/references/components/p-input-week/accessibility.md +14 -0
  80. package/skills/pds-knowledge-vue/references/components/p-input-week/p-input-week.md +12 -0
  81. package/skills/pds-knowledge-vue/references/components/p-link/p-link.md +2 -2
  82. package/skills/pds-knowledge-vue/references/components/p-link-pure/p-link-pure.md +2 -2
  83. package/skills/pds-knowledge-vue/references/components/p-link-tile-product/p-link-tile-product.md +2 -2
  84. package/skills/pds-knowledge-vue/references/components/p-multi-select/accessibility.md +22 -0
  85. package/skills/pds-knowledge-vue/references/components/p-multi-select/p-multi-select.md +14 -2
  86. package/skills/pds-knowledge-vue/references/components/p-pin-code/p-pin-code.md +11 -3
  87. package/skills/pds-knowledge-vue/references/components/p-select/accessibility.md +22 -0
  88. package/skills/pds-knowledge-vue/references/components/p-select/p-select.md +14 -2
  89. package/skills/pds-knowledge-vue/references/components/p-switch/accessibility.md +18 -0
  90. package/skills/pds-knowledge-vue/references/components/p-switch/p-switch.md +12 -0
  91. package/skills/pds-knowledge-vue/references/components/p-textarea/accessibility.md +14 -0
  92. package/skills/pds-knowledge-vue/references/components/p-textarea/p-textarea.md +12 -0
  93. package/skills/pds-knowledge-vue/references/deprecations.md +4 -4
  94. package/skills/pds-knowledge-vue/references/examples/patterns/feedback/dialog.md +230 -0
  95. package/skills/pds-knowledge-vue/references/examples/patterns/feedback/inline.md +193 -0
  96. package/skills/pds-knowledge-vue/references/examples/patterns/footer.md +250 -0
  97. package/skills/pds-knowledge-vue/references/examples/patterns/header/overlay.md +152 -0
  98. package/skills/pds-knowledge-vue/references/examples/patterns/header/stacked.md +122 -0
  99. package/skills/pds-knowledge-vue/references/examples/patterns/popover/feature-tour.md +243 -0
  100. package/skills/pds-knowledge-vue/references/examples/patterns/popover/local-market-switch.md +323 -0
  101. package/skills/pds-knowledge-vue/references/examples/patterns/popover/priority-navigation.md +191 -0
  102. package/skills/pds-knowledge-vue/references/examples/templates/admin-panel.md +397 -0
  103. package/skills/pds-knowledge-vue/references/examples/templates/landing-page.md +529 -0
  104. package/skills/pds-knowledge-vue/references/examples.md +48 -0
  105. package/vanilla-extract/cjs/focus/deprecated/getFocusStyle.cjs +0 -1
  106. package/vanilla-extract/esm/focus/deprecated/getFocusStyle.mjs +0 -1
@@ -47,6 +47,15 @@ The `p-input-tel` component is specifically designed for collecting telephone nu
47
47
 
48
48
  ### ARIA enhancements
49
49
 
50
+ #### External **ARIA** provided by the `aria` property:
51
+
52
+ Use the `aria` property to pass supported attributes to the **native control inside the shadow DOM**. Prefer a visible `label` for the accessible name. Use `aria-label` when the label is hidden or insufficient, and `aria-description` for extra context that should not replace the name.
53
+
54
+ | ARIA | Usage |
55
+ | --- | --- |
56
+ | `aria-label` | Defines an accessible name when the visible label is insufficient or hidden; prefer a visible `label` for most cases. |
57
+ | `aria-description` | Provides additional context for assistive technologies without replacing the accessible name. |
58
+
50
59
  #### Internal **ARIA** that is managed by the component:
51
60
 
52
61
  | ARIA | Usage |
@@ -65,11 +74,13 @@ In general, avoid using the `disabled` state. Disabled elements are no longer fo
65
74
 
66
75
  ### Common do's and don'ts
67
76
 
77
+ - **Do** pass extra labelling through the `aria` prop (`aria-label`, `aria-description`).
68
78
  - **Do** keep a persistent label and use helper/description text when additional context is required.
69
79
  - **Do** use the component state/message API so validation and status changes are announced.
70
80
  - **Do** use clear error wording that helps users recover.
71
81
  - **Don't** rely on placeholder text as the only label.
72
82
  - **Don't** use `hide-label` without an accessible name.
83
+ - **Don't** add native `aria-*` attributes directly on the component host.
73
84
 
74
85
  ## Limitations
75
86
 
@@ -90,6 +101,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
90
101
 
91
102
  | Property | Type | Default | Description |
92
103
  | --- | --- | --- | --- |
104
+ | `aria` | `InputTelAriaAttribute` | `undefined` | Sets additional ARIA attributes on the native input to improve accessibility for screen readers. |
93
105
  | `autoComplete` | `string` | `undefined` | Provides the browser with a phone number autofill hint (e.g. `autocomplete='tel'`). |
94
106
  | `compact` | `boolean` | `false` | Reduces the input height and padding for a more compact layout. |
95
107
  | `description` | `string` | `''` | Sets a supplementary description displayed below the label to provide additional context. |
@@ -2,6 +2,20 @@
2
2
 
3
3
  ## Integration examples
4
4
 
5
+ ### ARIA on component host vs aria prop
6
+
7
+ #### ❌ Anti-pattern
8
+
9
+ ```html
10
+ <PInputText name="email" label="Email address" aria-label="Accessible name" aria-description="Additional context"></PInputText>
11
+ ```
12
+
13
+ #### ✅ Recommended
14
+
15
+ ```html
16
+ <PInputText name="email" label="Email address" :aria="{'aria-label': 'Accessible name', 'aria-description': 'Additional context'}"></PInputText>
17
+ ```
18
+
5
19
  ### Placeholder used as the only label
6
20
 
7
21
  #### ❌ Anti-pattern
@@ -47,6 +47,15 @@ While a `placeholder` is optional but recommended to be set whenever bits of exa
47
47
 
48
48
  ### ARIA enhancements
49
49
 
50
+ #### External **ARIA** provided by the `aria` property:
51
+
52
+ Use the `aria` property to pass supported attributes to the **native control inside the shadow DOM**. Prefer a visible `label` for the accessible name. Use `aria-label` when the label is hidden or insufficient, and `aria-description` for extra context that should not replace the name.
53
+
54
+ | ARIA | Usage |
55
+ | --- | --- |
56
+ | `aria-label` | Defines an accessible name when the visible label is insufficient or hidden; prefer a visible `label` for most cases. |
57
+ | `aria-description` | Provides additional context for assistive technologies without replacing the accessible name. |
58
+
50
59
  #### Internal **ARIA** that is managed by the component:
51
60
 
52
61
  | ARIA | Usage |
@@ -69,11 +78,13 @@ In general, avoid using the `disabled` state. Disabled elements are no longer fo
69
78
 
70
79
  ### Common do's and don'ts
71
80
 
81
+ - **Do** pass extra labelling through the `aria` prop (`aria-label`, `aria-description`).
72
82
  - **Do** keep a persistent label and use helper/description text when additional context is required.
73
83
  - **Do** use the component state/message API so validation and status changes are announced.
74
84
  - **Do** use clear error wording that helps users recover.
75
85
  - **Don't** rely on placeholder text as the only label.
76
86
  - **Don't** use `hide-label` without an accessible name.
87
+ - **Don't** add native `aria-*` attributes directly on the component host.
77
88
 
78
89
  ## Limitations
79
90
 
@@ -94,6 +105,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
94
105
 
95
106
  | Property | Type | Default | Description |
96
107
  | --- | --- | --- | --- |
108
+ | `aria` | `InputTextAriaAttribute` | `undefined` | Sets additional ARIA attributes on the native input to improve accessibility for screen readers. |
97
109
  | `autoComplete` | `string` | `undefined` | Provides the browser with a data type hint to enable relevant autofill suggestions (e.g. `autocomplete='name'`). |
98
110
  | `compact` | `boolean` | `false` | Reduces the input height and padding for a more compact layout. |
99
111
  | `counter` | `boolean` | `false` | Shows a live character counter below the field indicating how many characters have been entered relative to `maxLength`. |
@@ -2,6 +2,20 @@
2
2
 
3
3
  ## Integration examples
4
4
 
5
+ ### ARIA on component host vs aria prop
6
+
7
+ #### ❌ Anti-pattern
8
+
9
+ ```html
10
+ <PInputTime name="time" label="Appointment time" aria-label="Accessible name" aria-description="Additional context"></PInputTime>
11
+ ```
12
+
13
+ #### ✅ Recommended
14
+
15
+ ```html
16
+ <PInputTime name="time" label="Appointment time" :aria="{'aria-label': 'Accessible name', 'aria-description': 'Additional context'}"></PInputTime>
17
+ ```
18
+
5
19
  ### Placeholder used as the only label
6
20
 
7
21
  #### ❌ Anti-pattern
@@ -48,6 +48,15 @@ While a `placeholder` is optional but recommended to be set whenever bits of exa
48
48
 
49
49
  ### ARIA enhancements
50
50
 
51
+ #### External **ARIA** provided by the `aria` property:
52
+
53
+ Use the `aria` property to pass supported attributes to the **native control inside the shadow DOM**. Prefer a visible `label` for the accessible name. Use `aria-label` when the label is hidden or insufficient, and `aria-description` for extra context that should not replace the name.
54
+
55
+ | ARIA | Usage |
56
+ | --- | --- |
57
+ | `aria-label` | Defines an accessible name when the visible label is insufficient or hidden; prefer a visible `label` for most cases. |
58
+ | `aria-description` | Provides additional context for assistive technologies without replacing the accessible name. |
59
+
51
60
  #### Internal **ARIA** that is managed by the component:
52
61
 
53
62
  | ARIA | Usage |
@@ -66,11 +75,13 @@ In general, avoid using the `disabled` state. Disabled elements are no longer fo
66
75
 
67
76
  ### Common do's and don'ts
68
77
 
78
+ - **Do** pass extra labelling through the `aria` prop (`aria-label`, `aria-description`).
69
79
  - **Do** keep a persistent label and use helper/description text when additional context is required.
70
80
  - **Do** use the component state/message API so validation and status changes are announced.
71
81
  - **Do** use clear error wording that helps users recover.
72
82
  - **Don't** rely on placeholder text as the only label.
73
83
  - **Don't** use `hide-label` without an accessible name.
84
+ - **Don't** add native `aria-*` attributes directly on the component host.
74
85
 
75
86
  ## Limitations
76
87
 
@@ -91,6 +102,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
91
102
 
92
103
  | Property | Type | Default | Description |
93
104
  | --- | --- | --- | --- |
105
+ | `aria` | `InputTimeAriaAttribute` | `undefined` | Sets additional ARIA attributes on the native input to improve accessibility for screen readers. |
94
106
  | `autoComplete` | `string` | `undefined` | Provides the browser with a time autofill hint. |
95
107
  | `compact` | `boolean` | `false` | Reduces the input height and padding for a more compact layout. |
96
108
  | `description` | `string` | `''` | Sets a supplementary description displayed below the label to provide additional context. |
@@ -2,6 +2,20 @@
2
2
 
3
3
  ## Integration examples
4
4
 
5
+ ### ARIA on component host vs aria prop
6
+
7
+ #### ❌ Anti-pattern
8
+
9
+ ```html
10
+ <PInputUrl name="website" label="Website" aria-label="Accessible name" aria-description="Additional context"></PInputUrl>
11
+ ```
12
+
13
+ #### ✅ Recommended
14
+
15
+ ```html
16
+ <PInputUrl name="website" label="Website" :aria="{'aria-label': 'Accessible name', 'aria-description': 'Additional context'}"></PInputUrl>
17
+ ```
18
+
5
19
  ### Placeholder used as the only label
6
20
 
7
21
  #### ❌ Anti-pattern
@@ -47,6 +47,15 @@ The `p-input-url` component is specifically designed for collecting website URLs
47
47
 
48
48
  ### ARIA enhancements
49
49
 
50
+ #### External **ARIA** provided by the `aria` property:
51
+
52
+ Use the `aria` property to pass supported attributes to the **native control inside the shadow DOM**. Prefer a visible `label` for the accessible name. Use `aria-label` when the label is hidden or insufficient, and `aria-description` for extra context that should not replace the name.
53
+
54
+ | ARIA | Usage |
55
+ | --- | --- |
56
+ | `aria-label` | Defines an accessible name when the visible label is insufficient or hidden; prefer a visible `label` for most cases. |
57
+ | `aria-description` | Provides additional context for assistive technologies without replacing the accessible name. |
58
+
50
59
  #### Internal **ARIA** that is managed by the component:
51
60
 
52
61
  | ARIA | Usage |
@@ -65,11 +74,13 @@ In general, avoid using the `disabled` state. Disabled elements are no longer fo
65
74
 
66
75
  ### Common do's and don'ts
67
76
 
77
+ - **Do** pass extra labelling through the `aria` prop (`aria-label`, `aria-description`).
68
78
  - **Do** keep a persistent label and use helper/description text when additional context is required.
69
79
  - **Do** use the component state/message API so validation and status changes are announced.
70
80
  - **Do** use clear error wording that helps users recover.
71
81
  - **Don't** rely on placeholder text as the only label.
72
82
  - **Don't** use `hide-label` without an accessible name.
83
+ - **Don't** add native `aria-*` attributes directly on the component host.
73
84
 
74
85
  ## Limitations
75
86
 
@@ -90,6 +101,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
90
101
 
91
102
  | Property | Type | Default | Description |
92
103
  | --- | --- | --- | --- |
104
+ | `aria` | `InputUrlAriaAttribute` | `undefined` | Sets additional ARIA attributes on the native input to improve accessibility for screen readers. |
93
105
  | `autoComplete` | `string` | `undefined` | Provides the browser with a URL autofill hint (e.g. `autocomplete='url'`). |
94
106
  | `compact` | `boolean` | `false` | Reduces the input height and padding for a more compact layout. |
95
107
  | `description` | `string` | `''` | Sets a supplementary description displayed below the label to provide additional context. |
@@ -2,6 +2,20 @@
2
2
 
3
3
  ## Integration examples
4
4
 
5
+ ### ARIA on component host vs aria prop
6
+
7
+ #### ❌ Anti-pattern
8
+
9
+ ```html
10
+ <PInputWeek name="week" label="Calendar week" aria-label="Accessible name" aria-description="Additional context"></PInputWeek>
11
+ ```
12
+
13
+ #### ✅ Recommended
14
+
15
+ ```html
16
+ <PInputWeek name="week" label="Calendar week" :aria="{'aria-label': 'Accessible name', 'aria-description': 'Additional context'}"></PInputWeek>
17
+ ```
18
+
5
19
  ### Placeholder used as the only label
6
20
 
7
21
  #### ❌ Anti-pattern
@@ -46,6 +46,15 @@ A `label` is a caption which informs the user what information a particular form
46
46
 
47
47
  ### ARIA enhancements
48
48
 
49
+ #### External **ARIA** provided by the `aria` property:
50
+
51
+ Use the `aria` property to pass supported attributes to the **native control inside the shadow DOM**. Prefer a visible `label` for the accessible name. Use `aria-label` when the label is hidden or insufficient, and `aria-description` for extra context that should not replace the name.
52
+
53
+ | ARIA | Usage |
54
+ | --- | --- |
55
+ | `aria-label` | Defines an accessible name when the visible label is insufficient or hidden; prefer a visible `label` for most cases. |
56
+ | `aria-description` | Provides additional context for assistive technologies without replacing the accessible name. |
57
+
49
58
  #### Internal **ARIA** that is managed by the component:
50
59
 
51
60
  | ARIA | Usage |
@@ -64,11 +73,13 @@ In general, avoid using the `disabled` state. Disabled elements are no longer fo
64
73
 
65
74
  ### Common do's and don'ts
66
75
 
76
+ - **Do** pass extra labelling through the `aria` prop (`aria-label`, `aria-description`).
67
77
  - **Do** keep a persistent label and use helper/description text when additional context is required.
68
78
  - **Do** use the component state/message API so validation and status changes are announced.
69
79
  - **Do** use clear error wording that helps users recover.
70
80
  - **Don't** rely on placeholder text as the only label.
71
81
  - **Don't** use `hide-label` without an accessible name.
82
+ - **Don't** add native `aria-*` attributes directly on the component host.
72
83
 
73
84
  ## Limitations
74
85
 
@@ -89,6 +100,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
89
100
 
90
101
  | Property | Type | Default | Description |
91
102
  | --- | --- | --- | --- |
103
+ | `aria` | `InputWeekAriaAttribute` | `undefined` | Sets additional ARIA attributes on the native input to improve accessibility for screen readers. |
92
104
  | `autoComplete` | `string` | `undefined` | Provides the browser with a week/year autofill hint. |
93
105
  | `compact` | `boolean` | `false` | Reduces the input height and padding for a more compact layout. |
94
106
  | `description` | `string` | `''` | Sets a supplementary description displayed below the label to provide additional context. |
@@ -83,7 +83,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
83
83
  | `compact` | `boolean`<br>`BreakpointCustomizable<boolean>` | `false` | Reduces the link's padding and height for denser layouts. Supports responsive breakpoint values. |
84
84
  | `download` | `string` | `undefined` | Sets the native `download` attribute to trigger a file download. Only applies when `href` is set. |
85
85
  | `hideLabel` | `boolean`<br>`BreakpointCustomizable<boolean>` | `false` | Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values. |
86
- | `href` | `string` | `undefined` | When set, the component renders as an anchor navigating to this URL. Otherwise, provide a slotted anchor element. |
86
+ | `href` | `string` | `undefined` | When set, the component renders as an anchor navigating to this URL. Otherwise, provide a slotted anchor element, but not both. Without either, it renders as plain text. |
87
87
  | `icon` | `'none'`<br>one of 294 icon names — see [icon names](references/icons.md) | `'none'` | Sets the icon displayed next to the link label. Use `none` to show no icon. |
88
88
  | `iconSource` | `string` | `undefined` | Sets a path to a custom SVG icon, used instead of the built-in icon set. |
89
89
  | `rel` | `string` | `undefined` | Sets the `rel` attribute on the link (e.g. `noopener`). Only applies when `href` is set. |
@@ -94,7 +94,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
94
94
 
95
95
  | Slot | Required | Allowed tag names | Description |
96
96
  | --- | --- | --- | --- |
97
- | _(default)_ | no | — | Default slot to render the link label. This slot can be used to slot an anchor tag instead of using the href prop. |
97
+ | _(default)_ | no | — | Default slot to render the link label. This slot can be used to slot an anchor tag instead of using the `href` prop, but not in combination with it. |
98
98
 
99
99
  ### CSS Variables
100
100
 
@@ -88,7 +88,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
88
88
  | `color` | `'primary'` `'contrast-higher'` `'contrast-high'` `'contrast-medium'` `'inherit'` | `'primary'` | Sets the foreground color of the link's icon and label text. |
89
89
  | `download` | `string` | `undefined` | Sets the native `download` attribute to trigger a file download. Only applies when `href` is set. |
90
90
  | `hideLabel` | `boolean`<br>`BreakpointCustomizable<boolean>` | `false` | Hides the visible label while keeping it accessible to screen readers. Supports responsive breakpoint values. |
91
- | `href` | `string` | `undefined` | When set, the component renders as an anchor navigating to this URL. Otherwise, provide a slotted anchor element. |
91
+ | `href` | `string` | `undefined` | When set, the component renders as an anchor navigating to this URL. Otherwise, provide a slotted anchor element, but not both. Without either, it renders as plain text. |
92
92
  | `icon` | `''`<br>one of 294 icon names — see [icon names](references/icons.md) | `'arrow-right'` | Sets the icon displayed next to the label. |
93
93
  | `iconSource` | `string` | `undefined` | Sets a path to a custom SVG icon, used instead of the built-in icon set. |
94
94
  | `rel` | `string` | `undefined` | Sets the `rel` attribute on the link (e.g. `noopener`). Only applies when `href` is set. |
@@ -101,7 +101,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
101
101
 
102
102
  | Slot | Required | Allowed tag names | Description |
103
103
  | --- | --- | --- | --- |
104
- | _(default)_ | no | — | Default slot to render the link label. |
104
+ | _(default)_ | no | — | Default slot to render the link label. This slot can be used to slot an anchor tag instead of using the `href` prop, but not in combination with it. |
105
105
 
106
106
  ## Examples
107
107
 
@@ -59,7 +59,7 @@ Not yet considered due to experimental state.
59
59
  | `aspectRatio` | `'3/4'` `'9/16'`<br>`BreakpointCustomizable<LinkTileProductAspectRatio>` | `'3/4'` | Sets the width-to-height ratio of the tile media area. Supports responsive breakpoint values. |
60
60
  | `description` | `string` | `undefined` | Sets an optional short description providing additional product details below the price. |
61
61
  | `heading` _(required)_ | `string` | `undefined` | Sets the product name displayed prominently at the top of the tile. |
62
- | `href` | `string` | `undefined` | Sets the URL the tile navigates to when clicked. Alternatively, provide a slotted anchor element. |
62
+ | `href` | `string` | `undefined` | Sets the URL the tile navigates to when clicked. Alternatively, provide a slotted anchor element, which is not rendered when `href` is set. |
63
63
  | `likeButton` | `boolean` | `true` | Shows a like/bookmark button so users can save the product. |
64
64
  | `liked` | `boolean` | `false` | Reflects whether the product is currently liked — controls the filled state of the like button. |
65
65
  | `price` _(required)_ | `string` | `undefined` | Sets the current retail price of the product, displayed with or without a discount. |
@@ -81,7 +81,7 @@ Not yet considered due to experimental state.
81
81
 
82
82
  | Slot | Required | Allowed tag names | Description |
83
83
  | --- | --- | --- | --- |
84
- | `anchor` | no | — | Slotted anchor link which can be used instead of the `href` prop. Ensure the named slot is directly on the anchor element, without nesting. |
84
+ | `anchor` | no | — | Slotted anchor link which can be used instead of the `href` prop. It is not rendered when `href` is set. Ensure the named slot is directly on the anchor element, without nesting. |
85
85
  | `header` | no | — | Shows special features about the product like novelty or exclusivity. Although you can pass in anything, it is recommended to use the `p-tag` component. |
86
86
  | _(default)_ | no | — | Default slot for the img or picture tag. |
87
87
 
@@ -2,6 +2,28 @@
2
2
 
3
3
  ## Integration examples
4
4
 
5
+ ### ARIA on component host vs aria prop
6
+
7
+ #### ❌ Anti-pattern
8
+
9
+ ```html
10
+ <PMultiSelect name="options" label="Optional extras" aria-label="Accessible name" aria-description="Additional context">
11
+ <PMultiSelectOption value="option-a">
12
+ Option A
13
+ </PMultiSelectOption>
14
+ </PMultiSelect>
15
+ ```
16
+
17
+ #### ✅ Recommended
18
+
19
+ ```html
20
+ <PMultiSelect name="options" label="Optional extras" :aria="{'aria-label': 'Accessible name', 'aria-description': 'Additional context'}">
21
+ <PMultiSelectOption value="option-a">
22
+ Option A
23
+ </PMultiSelectOption>
24
+ </PMultiSelect>
25
+ ```
26
+
5
27
  ### Prompt option used instead of a label
6
28
 
7
29
  #### ❌ Anti-pattern
@@ -55,13 +55,22 @@ Options are slotted using the `p-multi-select-option` component. Each option nee
55
55
 
56
56
  ### ARIA enhancements
57
57
 
58
+ #### External **ARIA** provided by the `aria` property:
59
+
60
+ Use the `aria` property to pass supported attributes to the **native control inside the shadow DOM**. Prefer a visible `label` for the accessible name. Use `aria-label` when the label is hidden or missing, and `aria-description` for extra context that should not replace the name. Do not use `aria-label` to replace a different visible label (WCAG 2.5.3).
61
+
62
+ | ARIA | Usage |
63
+ | --- | --- |
64
+ | `aria-label` | Defines an accessible name when the visible label is insufficient or hidden; prefer a visible `label` for most cases. |
65
+ | `aria-description` | Provides additional context for assistive technologies without replacing the accessible name. |
66
+
58
67
  #### Internal **ARIA** that is managed by the component:
59
68
 
60
69
  | ARIA | Usage |
61
70
  | --- | --- |
62
- | `aria-labelledby="IDREF"` | References the accessible name of the combobox. |
71
+ | `aria-labelledby="IDREF"` | On the listbox: references the field label as the accessible name. |
63
72
  | `aria-describedby="IDREF"` | References the accessible description and status messages of the combobox. |
64
- | `aria-label="STRING"` | References the accessible name of the listbox. |
73
+ | `aria-label="STRING"` | On options without a value: fallback accessible name (`Empty value`). |
65
74
  | `role="status"`, `role="alert"` | When `message` and `state` prop change, the status message is announced. |
66
75
  | `aria-expanded="BOOLEAN"` | Indicates that the listbox element is displayed/hidden. |
67
76
  | `aria-controls="IDREF"` | Identifies the element that serves as the listbox. |
@@ -79,11 +88,13 @@ In general, avoid using the `disabled` state. Disabled elements are no longer fo
79
88
 
80
89
  ### Common do's and don'ts
81
90
 
91
+ - **Do** pass extra labelling through the `aria` prop (`aria-label`, `aria-description`).
82
92
  - **Do** provide a clear, persistent label for what the selection controls.
83
93
  - **Do** use meaningful option text so choices are understandable out of context.
84
94
  - **Do** use the component state/message API so validation and status changes are announced.
85
95
  - **Don't** use a prompt option or adjacent text as a substitute for a field label.
86
96
  - **Don't** use `hide-label` without an accessible name.
97
+ - **Don't** add native `aria-*` attributes directly on the component host.
87
98
 
88
99
  ## Integration examples
89
100
 
@@ -95,6 +106,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
95
106
 
96
107
  | Property | Type | Default | Description |
97
108
  | --- | --- | --- | --- |
109
+ | `aria` | `MultiSelectAriaAttribute` | `undefined` | Sets additional ARIA attributes on the combobox to improve accessibility for screen readers. |
98
110
  | `compact` | `boolean` | `false` | Reduces the control height and padding for a more compact layout. |
99
111
  | `description` | `string` | `''` | Sets a supplementary description displayed below the label to provide additional context. |
100
112
  | `disabled` | `boolean` | `false` | Disables the multi-select, preventing all interaction. Selected values are not submitted with the form. |
@@ -1,11 +1,13 @@
1
1
  # p-pin-code
2
2
 
3
- The `p-pin-code` component is optimized for entering sequences of digits. The most common use case is for entering one-time-passwords (OTP) or pin codes. The input fields allow only one digit at a time. When a digit is entered, the focus shifts automatically to the next input, until every input is filled.
3
+ The `p-pin-code` component is optimized for entering sequences of digits. The most common use case is for entering one-time-passwords (OTP) or pin codes. The input fields allow only one digit at a time. When a digit is entered, the focus shifts automatically to the next input, until every input is filled. Typing a digit into a filled input replaces that digit and moves focus forward.
4
4
 
5
5
  A few things to note:
6
6
 
7
7
  - Only digits can be entered.
8
8
  - Only one digit can be entered per input.
9
+ - Pressing a digit in a filled input overwrites the current value.
10
+ - `ArrowLeft` / `ArrowRight` move focus between inputs. `Home` / `End` jump to the first or last input.
9
11
  - Pressing `Delete` or `Backspace`: If the focussed input is blank and `Delete`/`Backspace` is pressed the focus transfers to the next/previous input, and clears the value of the next/previous input (if any). This avoids the need to explicitly `Shift+Tab & Delete`/ `Tab & Backspace`.
10
12
 
11
13
  A `label` is a caption which informs the user what information a particular form field is asking for. The `p-pin-code` component can be used with or without a label, but it's recommended to keep the label visible for better accessibility whenever possible. When used without a label, it's best practice to provide a descriptive label text for screen readers.
@@ -34,6 +36,12 @@ A `label` is a caption which informs the user what information a particular form
34
36
  | Key / state | Function |
35
37
  | --- | --- |
36
38
  | `Tab`, `Shift-Tab` | Moves focus to the next (or previous) focusable element. |
39
+ | `0`–`9` | Enters a digit in the focused input, replacing any existing digit, then moves focus to the next input. |
40
+ | `Backspace` | Clears the focused input. If it is already empty, clears the previous input and moves focus there. |
41
+ | `Delete` | Clears the focused input. If it is already empty, clears the next input and moves focus there. |
42
+ | `ArrowLeft`, `ArrowRight` | Moves focus to the previous or next input. Does not wrap. |
43
+ | `Home`, `End` | Moves focus to the first or last input. |
44
+ | `Enter` | Submits the surrounding form when native submit rules allow it. |
37
45
 
38
46
  ### ARIA enhancements
39
47
 
@@ -41,8 +49,8 @@ A `label` is a caption which informs the user what information a particular form
41
49
 
42
50
  | ARIA | Usage |
43
51
  | --- | --- |
44
- | `aria-label="STRING"` | References the current position of the input group. |
45
- | `aria-describedby="IDREF"` | References the accessible description and status messages. |
52
+ | `aria-label="STRING"` | Names each input by its position in the group, for example `1 of 4`. |
53
+ | `aria-describedby="IDREF"` | References the status message when `state` and `message` are set. |
46
54
  | `role="status"`, `role="alert"` | When `message` and `state` or `loading` prop change, the status message is announced. |
47
55
 
48
56
  ## Development considerations
@@ -2,6 +2,28 @@
2
2
 
3
3
  ## Integration examples
4
4
 
5
+ ### ARIA on component host vs aria prop
6
+
7
+ #### ❌ Anti-pattern
8
+
9
+ ```html
10
+ <PSelect name="model" label="Porsche model" aria-label="Accessible name" aria-description="Additional context">
11
+ <PSelectOption value="option-a">
12
+ Option A
13
+ </PSelectOption>
14
+ </PSelect>
15
+ ```
16
+
17
+ #### ✅ Recommended
18
+
19
+ ```html
20
+ <PSelect name="model" label="Porsche model" :aria="{'aria-label': 'Accessible name', 'aria-description': 'Additional context'}">
21
+ <PSelectOption value="option-a">
22
+ Option A
23
+ </PSelectOption>
24
+ </PSelect>
25
+ ```
26
+
5
27
  ### Prompt option used instead of a label
6
28
 
7
29
  #### ❌ Anti-pattern
@@ -49,13 +49,22 @@ Options are slotted using the `p-select-option` component. Each option needs to
49
49
 
50
50
  ### ARIA enhancements
51
51
 
52
+ #### External **ARIA** provided by the `aria` property:
53
+
54
+ Use the `aria` property to pass supported attributes to the **native control inside the shadow DOM**. Prefer a visible `label` for the accessible name. Use `aria-label` when the label is hidden or missing, and `aria-description` for extra context that should not replace the name. Do not use `aria-label` to replace a different visible label (WCAG 2.5.3).
55
+
56
+ | ARIA | Usage |
57
+ | --- | --- |
58
+ | `aria-label` | Defines an accessible name when the visible label is insufficient or hidden; prefer a visible `label` for most cases. |
59
+ | `aria-description` | Provides additional context for assistive technologies without replacing the accessible name. |
60
+
52
61
  #### Internal **ARIA** that is managed by the component:
53
62
 
54
63
  | ARIA | Usage |
55
64
  | --- | --- |
56
- | `aria-labelledby="IDREF"` | References the accessible name of the combobox. |
65
+ | `aria-labelledby="IDREF"` | On the listbox: references the field label as the accessible name. |
57
66
  | `aria-describedby="IDREF"` | References the accessible description and status messages of the combobox. |
58
- | `aria-label="STRING"` | References the accessible name of the listbox. |
67
+ | `aria-label="STRING"` | On options without a value: fallback accessible name (`Empty value`). |
59
68
  | `role="status"`, `role="alert"` | When `message` and `state` prop change, the status message is announced. |
60
69
  | `aria-expanded="BOOLEAN"` | Indicates that the listbox element is displayed/hidden. |
61
70
  | `aria-controls="IDREF"` | Identifies the element that serves as the listbox. |
@@ -71,6 +80,7 @@ In general, avoid using the `disabled` state. Disabled elements are no longer fo
71
80
 
72
81
  ### Common do's and don'ts
73
82
 
83
+ - **Do** pass extra labelling through the `aria` prop (`aria-label`, `aria-description`).
74
84
  - **Do** provide a clear, persistent label for what the selection controls.
75
85
  - **Do** use meaningful option text so choices are understandable out of context.
76
86
  - **Do** use the component state/message API so validation and status changes are announced.
@@ -78,6 +88,7 @@ In general, avoid using the `disabled` state. Disabled elements are no longer fo
78
88
  - **Don't** use a prompt option or adjacent text as a substitute for a field label.
79
89
  - **Don't** use very short or ambiguous option labels when context is important.
80
90
  - **Don't** use `hide-label` without an accessible name.
91
+ - **Don't** add native `aria-*` attributes directly on the component host.
81
92
 
82
93
  ## Integration examples
83
94
 
@@ -89,6 +100,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
89
100
 
90
101
  | Property | Type | Default | Description |
91
102
  | --- | --- | --- | --- |
103
+ | `aria` | `SelectAriaAttribute` | `undefined` | Sets additional ARIA attributes on the combobox to improve accessibility for screen readers. |
92
104
  | `compact` | `boolean` | `false` | Reduces the control height and padding for use in dense layouts where vertical space is limited. |
93
105
  | `description` | `string` | `''` | Sets a supplementary description displayed below the label to give users additional guidance about the select. |
94
106
  | `disabled` | `boolean` | `false` | Prevents user interaction with the select and excludes its value from form submissions. |
@@ -2,6 +2,24 @@
2
2
 
3
3
  ## Integration examples
4
4
 
5
+ ### ARIA on component host vs aria prop
6
+
7
+ #### ❌ Anti-pattern
8
+
9
+ ```html
10
+ <PSwitch aria-label="Dark mode" aria-description="Toggles the color theme">
11
+ Dark mode
12
+ </PSwitch>
13
+ ```
14
+
15
+ #### ✅ Recommended
16
+
17
+ ```html
18
+ <PSwitch :aria="{'aria-label': 'Dark mode', 'aria-description': 'Toggles the color theme'}">
19
+ Dark mode
20
+ </PSwitch>
21
+ ```
22
+
5
23
  ### Switch without descriptive label
6
24
 
7
25
  #### ❌ Anti-pattern
@@ -46,6 +46,15 @@ You can use native `click`, `focus`, `focusin`, `blur` and `focusout` events on
46
46
 
47
47
  ### ARIA enhancements
48
48
 
49
+ #### External **ARIA** provided by the `aria` property:
50
+
51
+ Use the `aria` property to pass supported attributes to the **native control inside the shadow DOM**. Prefer a visible slotted label for the accessible name. Use `aria-label` when the label is hidden or missing, and `aria-description` for extra context that should not replace the name. Do not use `aria-label` to replace a different visible label (WCAG 2.5.3).
52
+
53
+ | ARIA | Usage |
54
+ | --- | --- |
55
+ | `aria-label` | Defines an accessible name when the visible label is insufficient or hidden; prefer a visible `label` for most cases. |
56
+ | `aria-description` | Provides additional context for assistive technologies without replacing the accessible name. |
57
+
49
58
  #### Internal **ARIA** that is managed by the component:
50
59
 
51
60
  | ARIA | Usage |
@@ -62,9 +71,11 @@ The switch accessible name comes from the default slot. Provide concise, descrip
62
71
 
63
72
  ### Common do's and don'ts
64
73
 
74
+ - **Do** pass extra labelling through the `aria` prop (`aria-label`, `aria-description`).
65
75
  - **Do** provide a clear slotted label that describes what the switch controls.
66
76
  - **Do** use `hide-label` only when the label text remains in the slot for screen readers.
67
77
  - **Don't** use an icon or visual state alone without descriptive label text.
78
+ - **Don't** add native `aria-*` attributes directly on the component host.
68
79
 
69
80
  ## Integration examples
70
81
 
@@ -77,6 +88,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
77
88
  | Property | Type | Default | Description |
78
89
  | --- | --- | --- | --- |
79
90
  | `alignLabel` | `'start'` `'end'`<br>`BreakpointCustomizable<SwitchAlignLabel>` | `'end'` | Sets the position of the slotted label relative to the switch toggle, either before (`start`) or after (`end`) it. Supports responsive breakpoint values. |
91
+ | `aria` | `SwitchAriaAttribute` | `undefined` | Sets additional ARIA attributes on the switch to improve accessibility for screen readers. |
80
92
  | `checked` | `boolean` | `false` | Reflects the switch's current on/off state and allows setting the initial checked value when the component first renders. |
81
93
  | `compact` | `boolean` | `false` | Reduces the switch size and spacing for use in dense layouts where vertical space is limited. |
82
94
  | `disabled` | `boolean` | `false` | Prevents user interaction with the switch and blocks all click and keyboard events while it is disabled. |
@@ -2,6 +2,20 @@
2
2
 
3
3
  ## Integration examples
4
4
 
5
+ ### ARIA on component host vs aria prop
6
+
7
+ #### ❌ Anti-pattern
8
+
9
+ ```html
10
+ <PTextarea name="comment" label="Comment" aria-label="Accessible name" aria-description="Additional context"></PTextarea>
11
+ ```
12
+
13
+ #### ✅ Recommended
14
+
15
+ ```html
16
+ <PTextarea name="comment" label="Comment" :aria="{'aria-label': 'Accessible name', 'aria-description': 'Additional context'}"></PTextarea>
17
+ ```
18
+
5
19
  ### Placeholder-only instructions for open text input
6
20
 
7
21
  #### ❌ Anti-pattern