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

fix(docs,www): reduce warnings of invalid jsx & mdx attributes #14398

Merged
merged 6 commits into from May 16, 2023
Merged

fix(docs,www): reduce warnings of invalid jsx & mdx attributes #14398

merged 6 commits into from May 16, 2023

Conversation

andykenward
Copy link
Contributor

What kind of change does this PR introduce?

A few fixes for the docs & www site. Mainly invalid mdx elements for <svg>,<video> & <source>. Along with a couple next.js warnings.

The experimental feature of mdxRs is enabled in docs. But this isn't doing anything as you don't have the version of @next/mdx that supports it installed. Version @next/mdx``^13.0.2 supports this. And next ^13.0.2 will stop logging a warning of unexpected property. See the additional context screenshots below.

What is the current behavior?

Warnings & errors are logged in terminal and browser console when running docs & www in dev mode.
In some cases a <video> would not autoPlay or loop with invalid attributes. See the additional context screenshots below.

What is the new behavior?

Fixes should remove some of the warning & errors logs while working in dev mode.
<video> in .mdx files that are set to autoPlay and loop should do so now.

Additional context

CleanShot 2023-05-16 at 14 46 22
CleanShot 2023-05-16 at 14 46 55

CleanShot 2023-05-16 at 14 41 14
CleanShot 2023-05-16 at 14 39 54

@andykenward andykenward requested review from a team as code owners May 16, 2023 13:56
@vercel
Copy link

vercel bot commented May 16, 2023

@andykenward is attempting to deploy a commit to the Supabase Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented May 16, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2023 7:32pm
studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2023 7:32pm
studio-self-hosted ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2023 7:32pm
studio-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2023 7:32pm
supabase-studio-prod ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2023 7:32pm
supabase-studio-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2023 7:32pm
zone-www-dot-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2023 7:32pm

@saltcod
Copy link
Contributor

saltcod commented May 16, 2023

Awesome @andykenward thanks for this! Overdue!

@saltcod saltcod merged commit 76b3a0b into supabase:master May 16, 2023
12 checks 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.

None yet

2 participants