diff --git a/.github/a11y-baseline.json b/.github/a11y-baseline.json index 84e9c710ad67..3f3bfdeabeed 100644 --- a/.github/a11y-baseline.json +++ b/.github/a11y-baseline.json @@ -803,71 +803,6 @@ "impact": "serious", "helpUrl": "https://dequeuniversity.com/rules/axe/4.12/color-contrast?application=playwright" }, - { - "key": "RichTextEditor::Controlled Persistence::aria-input-field-name", - "impact": "serious", - "helpUrl": "https://dequeuniversity.com/rules/axe/4.12/aria-input-field-name?application=playwright" - }, - { - "key": "RichTextEditor::Custom Transformers::aria-input-field-name", - "impact": "serious", - "helpUrl": "https://dequeuniversity.com/rules/axe/4.12/aria-input-field-name?application=playwright" - }, - { - "key": "RichTextEditor::Default::aria-input-field-name", - "impact": "serious", - "helpUrl": "https://dequeuniversity.com/rules/axe/4.12/aria-input-field-name?application=playwright" - }, - { - "key": "RichTextEditor::Error Status::aria-input-field-name", - "impact": "serious", - "helpUrl": "https://dequeuniversity.com/rules/axe/4.12/aria-input-field-name?application=playwright" - }, - { - "key": "RichTextEditor::Imperative Ref::aria-input-field-name", - "impact": "serious", - "helpUrl": "https://dequeuniversity.com/rules/axe/4.12/aria-input-field-name?application=playwright" - }, - { - "key": "RichTextEditor::Markdown Serializers::aria-input-field-name", - "impact": "serious", - "helpUrl": "https://dequeuniversity.com/rules/axe/4.12/aria-input-field-name?application=playwright" - }, - { - "key": "RichTextEditor::Markdown Serializers::label", - "impact": "critical", - "helpUrl": "https://dequeuniversity.com/rules/axe/4.12/label?application=playwright" - }, - { - "key": "RichTextEditor::Read Only::aria-input-field-name", - "impact": "serious", - "helpUrl": "https://dequeuniversity.com/rules/axe/4.12/aria-input-field-name?application=playwright" - }, - { - "key": "RichTextEditor::Required::aria-input-field-name", - "impact": "serious", - "helpUrl": "https://dequeuniversity.com/rules/axe/4.12/aria-input-field-name?application=playwright" - }, - { - "key": "RichTextEditor::With Character Limit::aria-input-field-name", - "impact": "serious", - "helpUrl": "https://dequeuniversity.com/rules/axe/4.12/aria-input-field-name?application=playwright" - }, - { - "key": "RichTextEditor::With Description::aria-input-field-name", - "impact": "serious", - "helpUrl": "https://dequeuniversity.com/rules/axe/4.12/aria-input-field-name?application=playwright" - }, - { - "key": "RichTextEditor::With Initial Value::aria-input-field-name", - "impact": "serious", - "helpUrl": "https://dequeuniversity.com/rules/axe/4.12/aria-input-field-name?application=playwright" - }, - { - "key": "RichTextEditor::With Toolbar::aria-input-field-name", - "impact": "serious", - "helpUrl": "https://dequeuniversity.com/rules/axe/4.12/aria-input-field-name?application=playwright" - }, { "key": "Schedule::Async Loader::color-contrast", "impact": "serious", diff --git a/apps/storybook/stories/RichTextEditor.stories.tsx b/apps/storybook/stories/RichTextEditor.stories.tsx index 9d65dca39b35..8948324fb4d0 100644 --- a/apps/storybook/stories/RichTextEditor.stories.tsx +++ b/apps/storybook/stories/RichTextEditor.stories.tsx @@ -72,7 +72,8 @@ export const WithCharacterLimit: Story = { args: { label: 'Bio', maxLength: 80, - description: 'A character counter appears below the editor when maxLength is set.', + description: + 'A character counter appears below the editor when maxLength is set.', placeholder: 'Type past 80 characters to see the counter turn red…', }, }; @@ -159,7 +160,7 @@ export const ControlledPersistence = {
RichTextView (read-only render of the same content)
- + ); @@ -190,7 +191,9 @@ export const ImperativeRef = { onClick={() => { const state = ref.current?.getEditorState(); const text = state?.read(() => $getRoot().getTextContent()); - setReadout(`getEditorState() text content: ${JSON.stringify(text)}`); + setReadout( + `getEditorState() text content: ${JSON.stringify(text)}`, + ); }}> getEditorState() @@ -277,12 +280,15 @@ export const MarkdownSerializers = { return (
-
+
+