Skip to content

Commit a7e602a

Browse files
authored
@W-18274063 feat/256 CX docs update (#5513)
* update release notes per CX * update docs per cx * add a11y sections to various docs * fix release notes * required label example as CodeView * add RequiredLabelExample shared component * add RequiredLabelExample to docs pages
1 parent f3aee87 commit a7e602a

File tree

15 files changed

+108
-4
lines changed

15 files changed

+108
-4
lines changed

RELEASENOTES.general.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<!-- On release, add general notes here. In time the legacy release notes will be add to this -->
33

44

5-
## 2.27.0 - May 7, 2025
6-
\
5+
## 2.27.1 - May 7, 2025
6+
77
## 2.27.0 - April 17, 2025
88

99
- Update icons to `v10.12.2`

RELEASENOTES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,18 @@
175175
## Release 2.26.2 - February 6, 2025
176176

177177
## Component Blueprints
178+
### [Combobox](https://www.lightningdesignsystem.com/components/combobox)
179+
#### Removed
180+
- In February 2025, we removed the `slds-truncate` class to address an issue with obscured text. The label text of list items can now wrap in combobox components.
181+
178182
### [Form Element](https://www.lightningdesignsystem.com/components/form-element)
179183
#### Fixed
180184
- Move clear fix from 2.26.1 to target specific selectors, use clearfix mixin to avoid more edge cases (e.g. background colors)
181185

186+
### [Menus](https://www.lightningdesignsystem.com/components/menus)
187+
#### Removed
188+
- In February 2025, we removed the `slds-truncate` class to address an issue with obscured text. The label text of list items can now wrap in combobox components.
189+
182190
## Release 2.26.1 - January 30, 2025
183191

184192
- Update icons to `v10.11.2`
@@ -801,7 +809,7 @@
801809
- Fixed `NVDA` checkbox toggle is announced twice removed aria-live="assertive"
802810

803811
### [Combobox](https://www.lightningdesignsystem.com/components/combobox)
804-
#### Added
812+
#### Added
805813
- Tooltip option provided for Date/DateTime pickers.
806814
- Updated from tabindex to tabIndex.
807815

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import React from 'react';
2+
import PropTypes from 'prop-types';
3+
import CodeView from './CodeView';
4+
5+
const RequiredLabelExample = () => (
6+
<CodeView exampleOnly demoStyles="2rem">
7+
<label class="slds-form-element__label" for="">
8+
<abbr class="slds-required" title="required" aria-hidden="true">* </abbr>denotes a required field
9+
</label>
10+
</CodeView>
11+
);
12+
13+
RequiredLabelExample.propTypes = {
14+
children: PropTypes.string,
15+
title: PropTypes.string
16+
};
17+
18+
export default RequiredLabelExample;

ui/components/checkbox/docs.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import CodeView from '../../../shared/components/CodeView';
22
import CodeBlock from '../../../shared/components/CodeBlock';
33
import Blockquote from '../../../shared/components/Blockquote';
44
import StylingHooksTable from '../../../shared/components/StylingHooksTable';
5+
import RequiredLabelExample from '../../../shared/components/RequiredLabelExample';
56
import * as CheckboxExamples from './base/example';
67
import * as CheckboxFormElementExamples from './form-element/example';
78
import { getDisplayElementById } from '../../shared/helpers';
@@ -28,6 +29,9 @@ When a single checkbox is required, `<div class="slds-checkbox">` should get `<a
2829

2930
When a checkbox group is required, the `<fieldset>` should receive the class `.slds-is-required`. The `<legend>` should then get `<abbr class="required" title="required" aria-hidden="true">*</abbr>` added to the DOM for visual indication that the checkbox group is required.
3031

32+
Example:
33+
<RequiredLabelExample/>
34+
3135
As SLDS checkboxes rely on the `:checked` pseudo selector, and the indeterminate state is only accessible via JavaScript, the use of a CSS class on the input will be necessary to implement this in SLDS. Use JavaScript to add the class when the indeterminate property is set to true on the input.
3236

3337
### Mobile

ui/components/combobox/RELEASENOTES.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99

1010
- Fixed lookup variant focus style
1111

12+
## 2.26.2
13+
14+
### Removed
15+
16+
- In February 2025, we removed the `slds-truncate` class to address an issue with obscured text. The label text of list items can now wrap in combobox components.
17+
1218
## 2.25.0
1319

1420
### Fixed
@@ -28,7 +34,7 @@
2834
- Updated Combobox disabled color
2935

3036
## 2.22.0
31-
### Added
37+
### Added
3238
- Tooltip option provided for Date/DateTime pickers.
3339
- Updated from tabindex to tabIndex.
3440
## 2.21.0

ui/components/datepickers/docs.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import CodeView from '../../../shared/components/CodeView';
22
import DisplayColumn from '../../../shared/components/DisplayColumn';
33
import DisplayGrid from '../../../shared/components/DisplayGrid';
44
import Blockquote from '../../../shared/components/Blockquote';
5+
import RequiredLabelExample from '../../../shared/components/RequiredLabelExample';
56
import { getDisplayElementById, getDemoStylesById } from '../../shared/helpers';
67
import * as Base from './base/example';
78
import * as Range from './range/example';
@@ -45,11 +46,16 @@ The datepicker has the following markup requirements:
4546

4647
### Accessibility
4748

49+
To display the datepicker text input field and calendar date picker with maximum accessibility, datepicker should be empty to start. When a user begins typing, text input is activated, and the full date format for the user’s locale, such as text DD MM YYYY in the en_US_locale.
50+
4851
#### Markup
4952

5053
**Dialog:**
5154

5255
- Should act as a focus trap so the user only cycles through the datepicker `dialog` when the datepicker is open
56+
- A Date Format Visible variation displays a message about the expected date format. When the date field receives focus, a message appears under the field to show the expected date format. When focus is removed from the date field, the message is hidden and available as assistive text.
57+
- All datepicker fields marked as required with an * must have an accompanying legend. Example:
58+
<RequiredLabelExample/>
5359

5460
**Grid:**
5561

ui/components/datetime-picker/docs.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import CodeView from '../../../shared/components/CodeView';
22
import Blockquote from '../../../shared/components/Blockquote';
3+
import RequiredLabelExample from '../../../shared/components/RequiredLabelExample';
34
import * as DateTimeExamples from './base/example';
45
import { getDisplayElementById } from '../../shared/helpers';
56

@@ -43,6 +44,18 @@ The datetime picker has the following markup requirements:
4344
- On the element with the class `slds-combobox`, please remove `role="combobox"`, `aria-expanded`, and `aria-haspopup`.
4445
- On the `input` that we just added `type="datetime-local"` to, please remove `aria-controls`, `aria-autocomplete`, and `role="textbox"`.
4546

47+
### Accessibility
48+
49+
To display the datetime picker with maximum accessibility, the datetime field should be empty to start. When a user clicks, text input is activated, and the full date or time selector displays.
50+
51+
#### Markup
52+
53+
**Dialog:**
54+
55+
- A Date Format Visible variation displays a message about the expected date format. When the date field receives focus, a message appears under the field to show the expected date format. When focus is removed from the date field, the message is hidden and available as assistive text.
56+
- All datepicker fields marked as required with an * must have an accompanying legend. Example:
57+
<RequiredLabelExample/>
58+
4659
## Base
4760

4861
<CodeView demoStyles="height: 28rem;">

ui/components/form-element/docs.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import CodeView from '../../../shared/components/CodeView';
22
import CodeBlock from '../../../shared/components/CodeBlock';
33
import Example from '../../../shared/components/Example';
4+
import RequiredLabelExample from '../../../shared/components/RequiredLabelExample';
45
import Blockquote from '../../../shared/components/Blockquote';
56
import ButtonIcon from '../button-icons/';
67
import { FormElement, FormElementStatic, Fieldset } from './';
@@ -66,6 +67,11 @@ There are many types of input elements that can be used in the Form Element, inc
6667

6768
### Accessibility
6869

70+
All form elements marked as required with an * must have an accompanying legend.
71+
72+
Example:
73+
<RequiredLabelExample/>
74+
6975
Labels must have the `for` attribute applied, and its value must match the ID of the associated form element, like `<input id="unique-id-of-input" />`. This association ensures that assistive technology informs users about what information to enter where.
7076

7177
### Mobile

ui/components/input/docs.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import CodeView from '../../../shared/components/CodeView';
22
import CodeBlock from '../../../shared/components/CodeBlock';
33
import Blockquote from '../../../shared/components/Blockquote';
4+
import RequiredLabelExample from '../../../shared/components/RequiredLabelExample';
45
import * as InputExamples from './base/example';
56
import { getDisplayElementById } from '../../shared/helpers';
67
import { MobileNotice, MobileBlurb } from '../../shared/doc-text';
@@ -28,6 +29,11 @@ You can see examples of the correct markup in the [Left Icon & Clear Button exam
2829

2930
### Accessibility
3031

32+
All input fields marked as required with an * must have an accompanying legend.
33+
34+
Example:
35+
<RequiredLabelExample/>
36+
3137
Inputs with errors should have `aria-describedby` to insure that the associated field level error message is read by assistive technology.
3238

3339
If the error message has an `id="my-error-message"`, then the input should have `aria-describedby="my-error-message"` and `aria-invalid="true"`.

ui/components/menus/RELEASENOTES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
# Menus Release Notes
44

55
<!-- ## [Unreleased] -->
6+
## 2.26.2
7+
8+
### Removed
9+
10+
- In February 2025, we removed the `slds-truncate` class to address an issue with obscured text. The label text of list items can now wrap in combobox components.
611

712
## 2.27.0
813

0 commit comments

Comments
 (0)