@plone/volto-slate 18.2.2 → 18.2.3

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
@@ -8,6 +8,12 @@
8
8
 
9
9
  <!-- towncrier release notes start -->
10
10
 
11
+ ## 18.2.3 (2025-03-07)
12
+
13
+ ### Bugfix
14
+
15
+ - To ensure accessibility, an `aria-labelledby` attribute was added to the editable part of the `Slate` component. @Wagner3UB [#6803](https://github.com/plone/volto/issues/6803)
16
+
11
17
  ## 18.2.2 (2025-02-08)
12
18
 
13
19
  ### Bugfix
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plone/volto-slate",
3
- "version": "18.2.2",
3
+ "version": "18.2.3",
4
4
  "description": "Slate.js integration with Volto",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -213,6 +213,7 @@ class SlateEditor extends Component {
213
213
 
214
214
  render() {
215
215
  const {
216
+ id,
216
217
  selected,
217
218
  placeholder,
218
219
  onKeyDown,
@@ -340,6 +341,7 @@ class SlateEditor extends Component {
340
341
  onKeyDown && onKeyDown({ editor, event });
341
342
  }}
342
343
  {...editableProps}
344
+ aria-labelledby={`field-${id}`}
343
345
  />
344
346
  {selected &&
345
347
  slateSettings.persistentHelpers.map((Helper, i) => {
@@ -40,6 +40,7 @@ const HtmlSlateWidget = (props) => {
40
40
  onChange,
41
41
  value,
42
42
  focus,
43
+ fieldSet,
43
44
  className,
44
45
  block,
45
46
  placeholder,
@@ -128,6 +129,7 @@ const HtmlSlateWidget = (props) => {
128
129
  id={id}
129
130
  name={id}
130
131
  value={valueFromHtml}
132
+ fieldSet={fieldSet}
131
133
  onChange={handleChange}
132
134
  block={block}
133
135
  selected={selected}