Skip to content

Commit 32895fd

Browse files
committed
docs: Add more commentary to property resolution syntax.
1 parent e3c98d4 commit 32895fd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -529,15 +529,15 @@ Here, we tell css-blocks to use the `color` value from `other.selector` instead
529529

530530
> 🔮 **Future Feature: Resolve All Shorthand **
531531
>
532-
> For straightforward resolutions where you just want to yield or assume full control of styling against another block, feel free to use the CSS `all` property to quickly override or yield to all property conflict with another block:
532+
> For straightforward resolutions where you just want to yield or assume full control of styling against another block, feel free to use the CSS `all` property to quickly override or yield to all property conflict with another block. The downside of doing this is that as new properties are added to another element, you don't get a chance to review them and decide:
533533
534534
```css
535535
.my-class {
536536
color: red;
537537
background: blue;
538538

539539
/* Yields all conflicts to `other.selector` */
540-
all: resolve("other.selector");
540+
all: resolve("other.selector");
541541
}
542542
```
543543

@@ -588,8 +588,8 @@ If we were to switch around the order a bit so our `background-color` resolution
588588
```
589589

590590
> 💡 **Feature Note: States and Pseudo-Classes**
591-
>
592-
> **States** and **Pseudo-Classes** inherit **all** resolutions set on their containing **Class** or `:scope`.
591+
>
592+
> **States** and **Pseudo-Classes** inherit **all** resolutions set on their containing **Class** or `:scope`.
593593
>
594594
> This means that in the above example, where we **yield** for `background-color`, and **override** for `color`, the button element where both classes are used will still use `hoverable.button:hover`'s `background-color`, but it's color will remain `white`, like our component styles define!
595595

0 commit comments

Comments
 (0)