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

Eliminate all descendant of <p> warnings #448

Merged
merged 1 commit into from
Jun 15, 2022

Conversation

tuckerzp
Copy link
Contributor

This will eliminate all descendant of <p> related console warnings. To deal
with this issue, there were a couple places where Typography tags were
deleted. After running the tests and looking at the viewer, I am fairly certain
it did not break anything. But it would be good to double check that.

This will close #426

@easy-dynamics-oscal-automation easy-dynamics-oscal-automation bot requested a review from a team June 15, 2022 18:08
@kylelaker
Copy link
Contributor

So while this may not have broken anything visually, does it change the semantic meaning of any these in a breaking way? Like, are there situations now in the viewer or editor where we have text floating around directly inside a <div> without a <p>?

@tuckerzp tuckerzp force-pushed the feature/descendant-of-p-error-fix branch from f3ca25b to 6be0e93 Compare June 15, 2022 18:15
@tuckerzp tuckerzp changed the title Eliminate all descendant of p warnings Eliminate all descendant of <p> warnings Jun 15, 2022
src/components/OSCALControlProse.js Outdated Show resolved Hide resolved
The Typography wrapped around the TextField in OSCALEditableTextField
was causing a console warning. After removing the Typography, the
console error disappeared without causing any issue with the tests or viewer.

The same issue also occured in OSCALControlProse. proseDisplay can
sometimes be a TextField, causing the same warning. Removing the
Typography fixes the warning without any apparent side effects.
@tuckerzp tuckerzp force-pushed the feature/descendant-of-p-error-fix branch from 6be0e93 to fc808f4 Compare June 15, 2022 18:31
@easy-dynamics-oscal-automation easy-dynamics-oscal-automation bot requested a review from a team June 15, 2022 18:51
@Bronstrom Bronstrom merged commit 76f5aaf into develop Jun 15, 2022
@Bronstrom Bronstrom deleted the feature/descendant-of-p-error-fix branch June 15, 2022 18:54
@kylelaker kylelaker added the bug Something isn't working label Aug 29, 2022
@kylelaker kylelaker changed the title Eliminate all descendant of <p> warnings Eliminate all descendant of <p> warnings Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Subtask: Descendant of <p> errors
3 participants