Skip to content

Fix html validation errors #2577

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

Merged
merged 3 commits into from
Apr 19, 2024
Merged

Fix html validation errors #2577

merged 3 commits into from
Apr 19, 2024

Conversation

RoyEJohnson
Copy link
Contributor

@RoyEJohnson RoyEJohnson commented Apr 10, 2024

DISCO-194

The primary goal was to differentiate the desktop and mobile dropdown menu IDs. I did that by adding prefix to the dropdown context. While I was there, I converted dropdown-context to TS.

@RoyEJohnson RoyEJohnson requested a review from bethshook April 10, 2024 18:12
@RoyEJohnson RoyEJohnson force-pushed the fix-html-validation-errors branch 5 times, most recently from 0f09f4b to 2f20f3c Compare April 11, 2024 13:24
<MainMenuItems />
<UpperMenu />
</ul>
<React.Fragment>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure this is needed here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are two DropdownContextProvider units, so I had to wrap them in a Fragment (because of the every-component-must-return-a-single-root-element rule)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah indeed, I misread

Does nothing, since React rewrites index.html with the trailing slashes.
Unclutter dropdown-context
@RoyEJohnson RoyEJohnson force-pushed the fix-html-validation-errors branch from 2f20f3c to 2daad50 Compare April 16, 2024 18:27
@RoyEJohnson RoyEJohnson merged commit c9c053c into main Apr 19, 2024
1 check passed
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.

2 participants