Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove spans from within editable elements #399

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chrispymm
Copy link
Contributor

@chrispymm chrispymm commented Apr 19, 2024

This PR walks back the changes I made last week adding child spans to all editable headings to keep the semantics.

A similar issue affected the editbale label elements for checkboxes and radios, however we are not easily able to add child spans into the labels as they are generated using GovukFormbuilder gem.

In order to solve both problems, we will remove the child and instead modify the editor JS to insert them.

@chrispymm chrispymm changed the title Remove spans from wihtin editable elements Remove spans from within editable elements Apr 19, 2024
@chrispymm chrispymm force-pushed the revert-editable-element-spans branch from a1ecef0 to cf60453 Compare April 29, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant