Skip to content

Commit 07f238e

Browse files
authored
Update README.md
1 parent 4ccd2e3 commit 07f238e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Finally, properties are what give the selected elements of a rule declaration th
116116
// ListingCard.jsx
117117
function ListingCard() {
118118
return (
119-
<article class="ListingCard featured">
119+
<article class="listing-card featured">
120120

121121
<h1 class="title">Adorable 2BR in the sunny Mission</h1>
122122

@@ -131,15 +131,15 @@ function ListingCard() {
131131

132132
```css
133133
/* ListingCard.css */
134-
.ListingCard { }
135-
.ListingCard[class*='featured'] { }
136-
.ListingCard .title { }
137-
.ListingCard .content { }
134+
.listing-card { }
135+
.listing-card[class*='featured'] { }
136+
.listing-card .title { }
137+
.listing-card .content { }
138138
```
139139

140-
* `.ListingCard` is the “block” and represents the higher-level component
141-
* `.ListingCard .title` is an “element” and represents a descendant of `.ListingCard` that helps compose the block as a whole.
142-
* `.ListingCard[class*='featured']` is a “modifier” and represents a different state or variation on the `.ListingCard` block.
140+
* `.listing-card` is the “block” and represents the higher-level component
141+
* `.listing-card .title` is an “element” and represents a descendant of `.listing-card` that helps compose the block as a whole.
142+
* `.listing-card[class*='featured']` is a “modifier” and represents a different state or variation on the `.listing-card` block.
143143

144144
### ID selectors
145145

0 commit comments

Comments
 (0)