Skip to content

[docs] Add missing parent <div> element to code example in each block bindings tutorial #7309

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 1 commit into from
Feb 25, 2022

Conversation

whymog
Copy link
Contributor

@whymog whymog commented Feb 23, 2022

This PR makes a small correction to the "each block bindings" tutorial. I believe this PR is in line with the contribution guidelines, but I'm new here, so apologies if anything's off.

I'm working through the Svelte tutorial -- which is great, by the way! -- and noticed a small inconsistency between the displayed example code and the "after" code state that's intended. This PR updates the example code to match the expected result.

In the previous commit on this file, the missing {#each} tags were restored to this example code, which is helpful -- but it left out the <div> that wraps the <input>s. If a reader were copying from the example into the workspace, they would notice the styles breaking as a result. This change is intended to clarify that the parent <div> element should remain intact.

Before submitting the PR, please make sure you do the following

  • It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
  • Prefix your PR title with [feat], [fix], [chore], or [docs].
  • This message body should clearly illustrate what problems it solves.
  • Ideally, include a test that fails without this PR but passes with it.

Tests

  • Run the tests with npm test and lint the project with npm run lint

In the previous commit, the missing `{#each}` tags were restored, which is helpful -- but it left out the `<div>` that wraps the `<input>`s. If a reader were copying from the example into the workspace, they would notice the styles breaking as a result. This change is intended to clarify that the parent `<div>` element should remain intact.
Copy link
Member

@dummdidumm dummdidumm left a comment

Choose a reason for hiding this comment

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

Good catch, thank you!

@dummdidumm dummdidumm merged commit f24614c into sveltejs:master Feb 25, 2022
@whymog
Copy link
Contributor Author

whymog commented Feb 25, 2022

My pleasure! Thanks for the quick review and the great docs!

@whymog whymog deleted the patch-1 branch February 25, 2022 17:51
himanshiLt pushed a commit to himanshiLt/svelte that referenced this pull request Mar 3, 2022
The div is part of the code, but not part of the code snippet of the text
nevilm-lt pushed a commit to nevilm-lt/svelte that referenced this pull request Mar 14, 2022
The div is part of the code, but not part of the code snippet of the text
nevilm-lt pushed a commit to nevilm-lt/svelte that referenced this pull request Apr 21, 2022
The div is part of the code, but not part of the code snippet of the text
nevilm-lt pushed a commit to nevilm-lt/svelte that referenced this pull request Apr 21, 2022
The div is part of the code, but not part of the code snippet of the text
nevilm-lt pushed a commit to nevilm-lt/svelte that referenced this pull request Apr 22, 2022
The div is part of the code, but not part of the code snippet of the text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants