Skip to content

Commit ba2f226

Browse files
committed
nested styling issue
1 parent db75372 commit ba2f226

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/LogViewer/StyledLogViewer.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const StyledLogAccordion = styled.div`
9999
color: ${props => props.theme.texts.accordionHeading};
100100
border-color: ${props => props.theme.borders.tableRow};
101101
.log-header {
102-
::before {
102+
&::before {
103103
background-image: url('/static/images/logs-closed.png');
104104
background-size: 8px 8px;
105105
background-color: #497ffa;
@@ -110,7 +110,7 @@ export const StyledLogAccordion = styled.div`
110110
margin: 0 10px 0 0;
111111
}
112112
&.visible {
113-
::before {
113+
&::before {
114114
background-image: url('/static/images/logs-opened.png');
115115
}
116116
}
@@ -121,7 +121,7 @@ export const StyledLogAccordion = styled.div`
121121
&.data-row.log-error-state {
122122
.accordion-heading {
123123
.log-header {
124-
::before {
124+
&::before {
125125
background-color: #e94a4a;
126126
}
127127
}
@@ -131,7 +131,7 @@ export const StyledLogAccordion = styled.div`
131131
.accordion-heading {
132132
.log-warning-state {
133133
margin-top: 1rem;
134-
::before {
134+
&::before {
135135
color: #000000;
136136
background-color: #ffbe00;
137137
}

0 commit comments

Comments
 (0)