Skip to content

Commit c00eeb5

Browse files
committed
Change to follow guidelines for BEM
1 parent 7a8b89a commit c00eeb5

File tree

2 files changed

+39
-39
lines changed

2 files changed

+39
-39
lines changed

src/stories/Blocks/material-manifestation-item/MaterialMainfestationItem.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ export const MaterialMainfestationItem = ({
3838
/>
3939
</div>
4040
<div className="material-manifestation-item__text">
41-
<h2 className="material-manifestation-item__text__title text-header-h4">
41+
<h2 className="material-manifestation-item__title text-header-h4">
4242
{title}
4343
</h2>
4444
<p className="text-small-caption">{`Af ${author} (${year})`}</p>
4545
<div
46-
className={`material-manifestation-item__text__details ${
46+
className={`material-manifestation-item__details ${
4747
isOpen ? "expanded" : ""
4848
}`}
4949
onClick={() => {
@@ -56,7 +56,7 @@ export const MaterialMainfestationItem = ({
5656
{isOpen && <ListDescription className="mt-24" data={detailsData} />}
5757
</div>
5858

59-
<div className="material-manifestation-item__reserve">
59+
<div className="material-manifestation-item__buttons">
6060
<Button
6161
label="RESERVER"
6262
buttonType="none"
@@ -65,7 +65,7 @@ export const MaterialMainfestationItem = ({
6565
size="small"
6666
variant="filled"
6767
/>
68-
<span className="link-tag text-small-caption material-manifestation-item__reserve__find">
68+
<span className="link-tag text-small-caption material-manifestation-item__find">
6969
Find på hylden
7070
</span>
7171
</div>

src/stories/Blocks/material-manifestation-item/material-manifestation-item.scss

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,31 @@
1515
&:hover {
1616
filter: drop-shadow(0 4px 20px rgba(72, 72, 72, 0.1));
1717
}
18-
}
1918

20-
.material-manifestation-item__cover {
21-
display: none;
19+
&__cover {
20+
display: none;
2221

23-
@include breakpoint-s {
24-
display: block;
25-
grid-column: 1/2;
26-
grid-row: 1/3;
27-
margin-right: 46px;
22+
@include breakpoint-s {
23+
display: block;
24+
grid-column: 1/2;
25+
grid-row: 1/3;
26+
margin-right: 46px;
27+
}
2828
}
29-
}
30-
31-
.material-manifestation-item__availability {
32-
display: flex;
33-
flex-wrap: wrap;
34-
gap: 6px;
35-
}
3629

37-
.material-manifestation-item__text {
38-
@include breakpoint-s {
39-
grid-column: 2/3;
30+
&__availability {
31+
display: flex;
32+
flex-wrap: wrap;
33+
gap: 6px;
4034
}
4135

36+
&__text {
37+
color: $c-text-secondary-gray;
4238

39+
@include breakpoint-s {
40+
grid-column: 2/3;
41+
}
42+
}
4343

4444
&__title {
4545
color: $c-text-primary-black;
@@ -55,10 +55,6 @@
5555
}
5656
}
5757

58-
&, &__details p.text-small-caption {
59-
color: $c-text-secondary-gray;
60-
}
61-
6258
&__details {
6359
margin-top: 19px;
6460
display: flex;
@@ -71,25 +67,29 @@
7167

7268
&.expanded {
7369
img {
74-
transform : rotate(180deg);
70+
transform: rotate(180deg);
7571
}
7672
}
77-
}
78-
}
7973

80-
.material-manifestation-item__reserve {
81-
@include breakpoint-s {
82-
display: flex;
83-
flex-direction: column;
84-
align-items: center;
85-
justify-self: end;
74+
& p.text-small-caption {
75+
color: $c-text-secondary-gray;
76+
}
8677
}
87-
button {
88-
margin-top: 16px;
89-
max-width: 158px;
9078

79+
&__buttons {
9180
@include breakpoint-s {
92-
margin-top: 0;
81+
display: flex;
82+
flex-direction: column;
83+
align-items: center;
84+
justify-self: end;
85+
}
86+
button {
87+
margin-top: 16px;
88+
max-width: 158px;
89+
90+
@include breakpoint-s {
91+
margin-top: 0;
92+
}
9393
}
9494
}
9595
&__find {

0 commit comments

Comments
 (0)