Skip to content

Commit 94c7a63

Browse files
committed
fix: 공연 내용 웹 앱뷰 전용 페이지의 다크 모드 텍스트 적용
1 parent d9b23e7 commit 94c7a63

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

apps/preview/src/pages/ShowPreviewNoticePage/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const ShowPreviewNoticePage: React.FC = () => {
1717
`}
1818
</style>
1919
</Helmet>
20-
<ShowContentMarkdown content={notice} />
20+
<ShowContentMarkdown content={notice} colorMode="dark" />
2121
</>
2222
);
2323
}

packages/ui/src/components/ShowContentMarkdown/ShowContentMarkdown.styles.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import styled from '@emotion/styled'
22

3-
const MarkdownContent = styled.div`
3+
const MarkdownContent = styled.div<{ colorMode?: 'dark' | 'light' }>`
4+
color: ${({ colorMode, theme }) => colorMode === 'dark' ? theme.palette.mobile.grey.g30: 'inherit'};
5+
46
p, ul, ol, li, blockquote {
57
font-size: 16px;
68
font-style: normal;

packages/ui/src/components/ShowContentMarkdown/index.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import Styled from './ShowContentMarkdown.styles'
77

88
interface ShowContentMarkdownProps {
99
content: string
10+
colorMode?: 'light' | 'dark'
1011
}
1112

1213
function remarkYoutubePlugin() {
@@ -37,9 +38,9 @@ function remarkYoutubePlugin() {
3738
}
3839
}
3940

40-
const ShowContentMarkdown: React.FC<ShowContentMarkdownProps> = ({ content }) => {
41+
const ShowContentMarkdown: React.FC<ShowContentMarkdownProps> = ({ content, colorMode = 'dark' }) => {
4142
return (
42-
<Styled.MarkdownContent>
43+
<Styled.MarkdownContent colorMode={colorMode}>
4344
<Markdown
4445
components={{
4546
// eslint-disable-next-line @typescript-eslint/no-unused-vars

0 commit comments

Comments
 (0)