You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`<${this.localName}> no longer has a default slot. Light DOM children are not rendered and are not used for an accessible name. Use the "label" attribute or property, or "aria-label" / "aria-labelledby" on the host instead.`,
'value supplied to the "label" attribute, which will be displayed visually as part of the element, or',
199
-
'text content supplied directly to the <sp-progress-circle> element, or',
200
219
'value supplied to the "aria-label" attribute, which will only be provided to screen readers, or',
201
220
'an element ID reference supplied to the "aria-labelledby" attribute, which will be provided by screen readers and will need to be managed manually by the parent application.',
* Light DOM children are not projected into the shadow tree. Use the `label` attribute or property, or `aria-label` / `aria-labelledby` on the host, for an accessible name.
Copy file name to clipboardExpand all lines: 2nd-gen/packages/swc/components/progress-circle/stories/progress-circle.stories.ts
+3-5Lines changed: 3 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -103,10 +103,10 @@ export const Overview: Story = {
103
103
*
104
104
* 1. **Track** - Background ring showing the full progress range
105
105
* 2. **Fill** - Colored ring segment showing current progress
106
-
* 3. **Label** - Accessible text describing the operation (not visually rendered)
106
+
* 3. **Label** - Accessible text describing the operation (not visually rendered), provided via the `label` attribute or property, or `aria-label` / `aria-labelledby` on the host
107
107
*
108
108
* ### Content
109
-
* - **Default slot**: Alternative way to provide an accessible label (the `label` attribute is preferred)
109
+
*
110
110
* - **Label**: Accessible text describing what is loading or progressing (not visually rendered)
111
111
*/
112
112
exportconstAnatomy: Story={
@@ -246,9 +246,7 @@ export const Indeterminate: Story = {
246
246
* #### ARIA implementation
247
247
*
248
248
* 1. **ARIA role**: Automatically sets `role="progressbar"` for proper semantic meaning
249
-
* 2. **Labeling**:
250
-
* - Uses the `label` attribute value as `aria-label`
251
-
* - Alternative: Content in the default slot can provide the label
249
+
* 2. **Labeling**: Uses the `label` attribute value as `aria-label`, or rely on `aria-label` / `aria-labelledby` you set on the host
252
250
* 3. **Progress state** (determinate):
253
251
* - Sets `aria-valuenow` with the current `progress` value
Copy file name to clipboardExpand all lines: CONTRIBUTOR-DOCS/02_style-guide/02_typescript/06_method-patterns.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,24 +27,24 @@ This guide explains how to order and name methods in 2nd-gen component classes.
27
27
28
28
## Method ordering
29
29
30
-
Within the [IMPLEMENTATION section](02_class-structure.md#section-implementation) of a base class, or the [RENDERING & STYLING section](02_class-structure.md#section-rendering-and-styling) of a concrete class, order methods by access level:
30
+
Within the [IMPLEMENTATION section](02_class-structure.md#section-implementation) of a base class, or the [RENDERING & STYLING section](02_class-structure.md#section-rendering-and-styling) of a concrete class, use this **default** order by access level:
31
31
32
32
1.**public** methods first
33
-
2.**protected** methods second (including lifecycle)
33
+
2.**protected** methods second (including lifecycle overrides)
34
34
3.**private** methods last
35
35
36
-
**Example from ProgressCircle.base.ts — IMPLEMENTATION section:**
36
+
**Exception:** Keep lifecycle overrides in **Lit order** (e.g. `firstUpdated` before `updated`). You may place a **private method****between** those hooks **when only those hooks call it** (and nothing else in the class does), so the file reads in execution order; if the method is also used elsewhere, put it **after** all protected members instead.
37
+
38
+
**Example from [ProgressCircle.base.ts](../../../2nd-gen/packages/core/components/progress-circle/ProgressCircle.base.ts) — IMPLEMENTATION section:**
0 commit comments