Use proper semantic HTML for inline text formatting #1610
Labels
Elements: Text
P3
Nice to have
Package: Rich Text
/packages/rich-text
Type: Enhancement
New feature or improvement of an existing feature
Feature Description
Since #1323 all inline text formatting in a text field is done using
<span>
and inline style properties.This should be changed to proper semantic HMTL elements where applicable - e.g. going from the current:
To:
Thus using semantic elements where possible (for bold font-weights, italic and underline) and keep spans where not (for non-bold font weights, text color and letter spacing).
This however requires moving away from the current
draft-js-export-html
dependency to a custom DraftJS-to-HTML converter (and of course vice-versa).Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance Criteria
QA Instructions
The text was updated successfully, but these errors were encountered: