Skip to content

Language and text direction are not editable in the visual editor #15349

@karlgroves

Description

@karlgroves

Language and text direction are not editable in the visual editor

  • Severity: Medium
  • Affected Populations:
    • Blind
    • Low-Vision
    • Cognitively Impaired
  • Platform(s):
    • All / Universal
  • Components affected:
    • Block Editing
    • Title Block

Issue description

Users who need to add content in multiple languages cannot set the
lang or dir attribute for a block using the visual editor.
Instead, users must manually switch to the HTML editor.

In the HTML editor, adding a dir or lang attribute brings up an
error and the offer to resolve the error by either removing the dir
and lang attributes or converting the block to HTML. This allows
users to manually add in these attributes, however the editor suggesting
that these are errors may lead users to believe they cannot use these
attributes at all. It also requires users to be familiar with HTML.

Remediation Guidance

Add the ability to define lang and dir attributes in the visual
editor (probably via the block editing options), ideally with
user-friendly options such as choosing from language names and then
choosing between "left to right", "right to left" or "vertical".

Relevant standards

Note: This issue may be a duplicate with other existing accessibility-related bugs in this project. This issue comes from the Gutenberg accessibility audit, performed by Tenon and funded by WP Campus. This issue is GUT-111 in Tenon's report

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions