Skip to content

Replace background with background-color for consistency #467

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
Aug 11, 2023

Conversation

baderj
Copy link
Contributor

@baderj baderj commented Aug 7, 2023

The tutorial on Component styles uses background-color in the README.md, while the app uses the shorthand background. This could be confusing:

  1. The text tells us to

    change background-color ...

    but actually changes the background in Box.svelte.

  2. The first snippet uses background-color to overwrite background in App.svelte.

I replaced the shorthand background in the app with background-color to make it consistent with the tutorial text.

Fixes potential confusion by the tutorial using `background-color`
to overwrite `background` and referencing `background-color`
instead of the shorthand `background` used by the app.
@vercel
Copy link

vercel bot commented Aug 7, 2023

@baderj is attempting to deploy a commit to the Svelte Team on Vercel.

A member of the Team first needs to authorize it.

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.

Thank you!

@dummdidumm dummdidumm merged commit 3fe7f04 into sveltejs:main Aug 11, 2023
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