This commit is contained in:
parent
d2b5a08214
commit
1bd95548fa
4 changed files with 16 additions and 10 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
.button {
|
||||
font-family: inherit;
|
||||
color: $white;
|
||||
color: $white !important;
|
||||
border-radius: $border-radius;
|
||||
text-align: center;
|
||||
border: 0;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import { RichText as PayloadRichText } from '@payloadcms/richtext-lexical/react'
|
||||
import { SerializedEditorState } from 'lexical'
|
||||
import { jsxConverters } from './converters'
|
||||
import styles from "./richtext.module.scss"
|
||||
|
||||
|
||||
type RichTextProps = {
|
||||
|
|
@ -12,5 +13,5 @@ type RichTextProps = {
|
|||
// Use this everywhere instead of importing RichText directly from Payload, so
|
||||
// the converters can never be forgotten.
|
||||
export const RichText = ({ data }: RichTextProps) => (
|
||||
<PayloadRichText data={data} converters={jsxConverters} />
|
||||
<PayloadRichText data={data} converters={jsxConverters} className={styles.container}/>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,11 +1,3 @@
|
|||
.container a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.container a:visited {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.half {
|
||||
width: 50%;
|
||||
}
|
||||
|
|
|
|||
13
src/components/Text/richtext.module.scss
Normal file
13
src/components/Text/richtext.module.scss
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
@import 'template.scss';
|
||||
|
||||
.container a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.container a:visited {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.container h3, .container h4, .container h5, .container h6 {
|
||||
color: $base-color;
|
||||
}
|
||||
Loading…
Reference in a new issue