Skip to content

Commit c4ffbe7

Browse files
committed
CORE-1083: Update style for promote-snippet
[CORE-1083]
1 parent 27f69ba commit c4ffbe7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@import 'pattern-library/core/pattern-library/headers';
2+
3+
.promote-snippet {
4+
padding: 1rem 1.5rem;
5+
background-color: ui-color(page-bg);
6+
}

src/app/pages/details/desktop-view/promo.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
22
import RawHTML from '~/components/jsx-helpers/raw-html';
3+
import './promo.scss';
34

45
export type PromoteData = {
56
content?: {
@@ -16,6 +17,6 @@ export default function Promo({promoteSnippet}: {promoteSnippet: PromoteData | P
1617
}
1718

1819
return (
19-
<RawHTML html={data.content.description} />
20+
<RawHTML className="promote-snippet" html={data.content.description} />
2021
);
2122
}

0 commit comments

Comments
 (0)