Skip to content

Commit 884f3ac

Browse files
fix(colors): fix transition on page load
1 parent 4174c49 commit 884f3ac

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

src/pages/home/sections/Configurator/Editor/Editor.styled.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,29 @@ export const EditorWrapper = styled.div(
77
88
.ace_layer.ace_gutter-layer {
99
background: ${theme.custom.colors.container};
10-
transition: all ${theme.custom.colorTransition};
10+
transition: background-color ${theme.custom.colorTransition};
1111
}
1212
1313
.ace_gutter {
1414
background: ${theme.custom.colors.onContainer.dim};
15-
transition: all ${theme.custom.colorTransition};
15+
transition: background-color ${theme.custom.colorTransition};
1616
}
1717
1818
.selected_lines {
1919
position: absolute;
2020
background: ${theme.custom.colors.tertiary.normal};
21-
transition: all ${theme.custom.colorTransition};
21+
transition: background-color ${theme.custom.colorTransition};
2222
opacity: 0.3;
2323
}
2424
2525
.ace_gutter-active-line {
2626
background: ${theme.custom.colors.onContainer.dim};
27-
transition: all ${theme.custom.colorTransition};
27+
transition: background-color ${theme.custom.colorTransition};
2828
}
2929
3030
.ace_content {
3131
background: ${theme.custom.colors.container};
32-
transition: all ${theme.custom.colorTransition};
32+
transition: background-color ${theme.custom.colorTransition};
3333
}
3434
`
3535
);

src/providers/StylesProvider.utils.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@ export const getGlobalStyles = ({ theme }: { theme: Theme }) => css`
55
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
66
color: ${theme.custom.colors.onBackground};
77
background-color: ${theme.custom.colors.background};
8-
transition: all ${theme.custom.colorTransition};
98
height: 100%;
109
}
1110
11+
body {
12+
background-color: ${theme.custom.colors.background};
13+
transition: background-color ${theme.custom.colorTransition};
14+
}
15+
1216
div,
1317
span,
1418
p {

0 commit comments

Comments
 (0)