Skip to content

Commit 1ae4047

Browse files
fix(web): fix-header-and-icon-color
1 parent 16f8a17 commit 1ae4047

File tree

1 file changed

+5
-3
lines changed
  • web/src/pages/Settings/EmailConfirmation

1 file changed

+5
-3
lines changed

web/src/pages/Settings/EmailConfirmation/index.tsx

+5-3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ const InfoWrapper = styled.div`
4848
const textCss = css`
4949
margin: 0;
5050
text-align: center;
51+
white-space: pre-line;
52+
5153
${landscapeStyle(
5254
() => css`
5355
text-align: left;
@@ -57,15 +59,15 @@ const textCss = css`
5759

5860
const Header = styled.h1<{ fontColor: string }>`
5961
${textCss}
60-
white-space: pre-line;
6162
${({ fontColor }) =>
6263
css`
63-
color: ${fontColor};
64+
color: ${({ theme }) => theme[fontColor]};
6465
`};
6566
`;
6667

6768
const Subtitle = styled.h3`
6869
${textCss}
70+
max-width: 735px;
6971
`;
7072

7173
const HeaderIconContainer = styled.div<{ iconColor: string }>`
@@ -75,7 +77,7 @@ const HeaderIconContainer = styled.div<{ iconColor: string }>`
7577
${({ iconColor }) =>
7678
css`
7779
path {
78-
fill: ${iconColor};
80+
fill: ${({ theme }) => theme[iconColor]};
7981
}
8082
`}
8183
}

0 commit comments

Comments
 (0)