Fix typo and grammar in 01-svelte-components.md (#10737)

pull/10744/head
Dathan 10 months ago committed by GitHub
parent 74474fe085
commit 282d62baae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -321,7 +321,7 @@ To apply styles to a selector globally, use the `:global(...)` modifier.
If you want to make @keyframes that are accessible globally, you need to prepend your keyframe names with `-global-`. If you want to make @keyframes that are accessible globally, you need to prepend your keyframe names with `-global-`.
The `-global-` part will be removed when compiled, and the keyframe then be referenced using just `my-animation-name` elsewhere in your code. The `-global-` part will be removed when compiled, and the keyframe will then be referenced using just `my-animation-name` elsewhere in your code.
```svelte ```svelte
<style> <style>
@ -333,9 +333,9 @@ The `-global-` part will be removed when compiled, and the keyframe then be refe
There should only be 1 top-level `<style>` tag per component. There should only be 1 top-level `<style>` tag per component.
However, it is possible to have `<style>` tag nested inside other elements or logic blocks. However, it is possible to have a `<style>` tag nested inside other elements or logic blocks.
In that case, the `<style>` tag will be inserted as-is into the DOM, no scoping or processing will be done on the `<style>` tag. In that case, the `<style>` tag will be inserted as-is into the DOM; no scoping or processing will be done on the `<style>` tag.
```svelte ```svelte
<div> <div>

Loading…
Cancel
Save