Skip to content

Commit 4427b6c

Browse files
committed
Use BEM notation for naming classes
1 parent 0b05044 commit 4427b6c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/contributors/contributors-style.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
box-shadow: 0 0 2px rgba(0,0,0,0.3);
1919
}
2020

21-
.contributor-name {
21+
.contributor__name {
2222
color: getColor(fiord);
2323
margin-top: -6px;
2424
box-shadow: 0 0 2px rgba(0,0,0,0.3);
@@ -30,7 +30,7 @@
3030
}
3131

3232
&:hover {
33-
.contributor-name {
33+
.contributor__name {
3434
color: lighten(getColor(denim), 5%);
3535
}
3636
}

components/contributors/contributors.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default ({contributors}) => {
1717
className="contributor"
1818
href={ `https://github.com/${contributor}` }>
1919
<img src={ `https://github.com/${contributor}.png?size=90` } />
20-
<span className="contributor-name"> {contributor}</span>
20+
<span className="contributor__name"> {contributor}</span>
2121
</a>
2222
))
2323
}

0 commit comments

Comments
 (0)