Skip to content

Commit 18cbbcf

Browse files
committed
Fix typo
1 parent 0e4708d commit 18cbbcf

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ npm install --save-dev svelte-preprocess-cssmodules
2323
- [Native](#native)
2424
- [Mixed](#mixed)
2525
- [Scoped](#scoped)
26-
- [Why using CSS Modules over Svelte scoping](#why-using-css-modules-over-svelte-scoping)
26+
- [Why using CSS Modules over Svelte scoping](#why-using-css-modules-over-svelte-scoping)
2727
- [Configuration](#configuration)
2828
- [Rollup](#rollup)
2929
- [Webpack](#webpack)
@@ -604,7 +604,7 @@ The mode can be **set globally from the config** or **locally to override the gl
604604

605605
### Native
606606

607-
It scopes classes with cssModules, anything else is unscoped.
607+
Scopes classes with CSS Modules, anything else is unscoped.
608608

609609
Pros:
610610

@@ -614,13 +614,13 @@ Pros:
614614

615615
Cons:
616616

617-
- does not scopes non class selectors.
618-
- forces to write selectors with classes to be scoped to the component.
617+
- does not scope non class selectors.
618+
- forces to write selectors with classes.
619619
- needs to consider third party plugins with `useAsDefaultScoping` on – [Read more](#useasdefaultscoping).
620620

621621
### Mixed
622622

623-
It scopes non-class selectors with svelte scoping in addition to `native` (same as preprocessor `v1`)
623+
Scopes non-class selectors with svelte scoping in addition to `native` (same as preprocessor `v1`)
624624

625625
```html
626626
<style module="mixed">
@@ -631,7 +631,7 @@ It scopes non-class selectors with svelte scoping in addition to `native` (same
631631
<p class="red">My red text</p>
632632
```
633633

634-
*generating*
634+
_generating_
635635

636636
```html
637637
<style>
@@ -691,7 +691,7 @@ Cons:
691691

692692
### Scoped
693693

694-
It scopes classes with svelte scoping in addition to `mixed`.
694+
Scopes classes with svelte scoping in addition to `mixed`.
695695

696696
```html
697697
<style module="scoped">
@@ -702,7 +702,7 @@ It scopes classes with svelte scoping in addition to `mixed`.
702702
<p class="red">My red text</p>
703703
```
704704

705-
*generating*
705+
_generating_
706706

707707
```html
708708
<style>
@@ -722,7 +722,7 @@ Cons:
722722

723723
- does not pass scoped class name to child components
724724

725-
## Why using CSS Modules over Svelte scoping
725+
### Why using CSS Modules over Svelte scoping
726726

727727
- **On a full svelte application**: it is just a question of taste as the default svelte scoping is largely enough. Component styles will never inherit from other styling.
728728

0 commit comments

Comments
 (0)