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

[legacy-framework] (newapp) Fix validateDOMNesting error from default home page #1277

Merged
merged 1 commit into from Oct 10, 2020

Conversation

aericson
Copy link

@aericson aericson commented Oct 8, 2020

A <pre> cannot appear as a descendant of <p>. This will throw an error on a newly created project.

Screen Shot 2020-10-08 at 21 25 39

I'm quite new to the codebase and didn't really know how to create a project using the updated template. I've only tested it by copying pasting the code to a project created with my global installed blitz CLI.

What are the changes and their implications?

Changed to remove the <pre> from inside the <p>. I tried to keep the same design and to do that added an empty <div> and a text-align: center; to the pre selector.

Here is a screenshot of the visually unchanged page:
Screen Shot 2020-10-08 at 21 27 17

Checklist

  • Tests added for changes
  • PR submitted to blitzjs.com for any user facing changes

<pre> cannot appear as a descendant of <p>
@aericson aericson requested a review from aem as a code owner October 8, 2020 19:48
@blitzjs-bot blitzjs-bot bot added this to In Review in Dashboard Oct 8, 2020
@flybayer
Copy link
Member

Sweet, thanks @aericson!! Looks good.

@all-contributors add @aericson for code

@allcontributors
Copy link

@flybayer

I've put up a pull request to add @aericson! 🎉

@flybayer flybayer changed the title Editing template to fix validateDOMNesting error (newapp) Fix validateDOMNesting error from default home page Oct 10, 2020
@flybayer flybayer merged commit f31d2a9 into blitz-js:canary Oct 10, 2020
Dashboard automation moved this from In Review to Done Oct 10, 2020
wanjuntham pushed a commit to wanjuntham/blitz that referenced this pull request Oct 11, 2020
nahue added a commit to nahue/blitz that referenced this pull request Oct 13, 2020
…-ink

* 'canary' of github.com:blitz-js/blitz:
  docs: add alexnaiman as a contributor (blitz-js#1299)
  Fix circular dependencies in blitz core (blitz-js#1249)
  docs: add aaronfulkerson as a contributor (blitz-js#1295)
  Remove "--experimental" from "blitz db studio" (blitz-js#1272)
  Remove Simon Debbarma and Jack Clancy from L1 maintainers. (blitz-js#1290)
  Update @aericson as a contributor
  Add @Kosai106 as a contributor
  docs: add cajotafer as a contributor (blitz-js#1293)
  (newapp) Add yarn/npx to global install instructions in readme (blitz-js#1285)
  Fix to allow babel config modification in Recipes (blitz-js#1280)
  Fix all recipes to add their context providers above getLayout() (blitz-js#1279)
  docs: add aericson as a contributor (blitz-js#1292)
  (newapp) Fix validateDOMNesting error from default home page (blitz-js#1277)
  Fix `blitz generate model` to add fields to existing model instead of duplicating (blitz-js#1251)
  Fix to not run husky during new app creation (blitz-js#1270)
  Adds tests for useSession in core super tokens (blitz-js#1258)
ntgussoni added a commit to ntgussoni/blitz that referenced this pull request Feb 7, 2021
* upstream/canary: (70 commits)
  docs: add alexnaiman as a contributor (blitz-js#1299)
  Fix circular dependencies in blitz core (blitz-js#1249)
  docs: add aaronfulkerson as a contributor (blitz-js#1295)
  Remove "--experimental" from "blitz db studio" (blitz-js#1272)
  Remove Simon Debbarma and Jack Clancy from L1 maintainers. (blitz-js#1290)
  Update @aericson as a contributor
  Add @Kosai106 as a contributor
  docs: add cajotafer as a contributor (blitz-js#1293)
  (newapp) Add yarn/npx to global install instructions in readme (blitz-js#1285)
  Fix to allow babel config modification in Recipes (blitz-js#1280)
  Fix all recipes to add their context providers above getLayout() (blitz-js#1279)
  docs: add aericson as a contributor (blitz-js#1292)
  (newapp) Fix validateDOMNesting error from default home page (blitz-js#1277)
  Fix `blitz generate model` to add fields to existing model instead of duplicating (blitz-js#1251)
  Fix to not run husky during new app creation (blitz-js#1270)
  Adds tests for useSession in core super tokens (blitz-js#1258)
  Add Alexandru Stratulat as L1 Maintainer (blitz-js#1271)
  v0.24.1
  Fix page template to use useMutation (blitz-js#1269)
  update patch for release script (meta)
  ...
@dillondotzip dillondotzip changed the title (newapp) Fix validateDOMNesting error from default home page [legacy-framework] (newapp) Fix validateDOMNesting error from default home page Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants