File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ Finally, properties are what give the selected elements of a rule declaration th
116116// ListingCard.jsx
117117function 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
You can’t perform that action at this time.
0 commit comments