This commit is contained in:
parent
d2b5a08214
commit
1bd95548fa
4 changed files with 16 additions and 10 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
color: $white;
|
color: $white !important;
|
||||||
border-radius: $border-radius;
|
border-radius: $border-radius;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border: 0;
|
border: 0;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
import { RichText as PayloadRichText } from '@payloadcms/richtext-lexical/react'
|
import { RichText as PayloadRichText } from '@payloadcms/richtext-lexical/react'
|
||||||
import { SerializedEditorState } from 'lexical'
|
import { SerializedEditorState } from 'lexical'
|
||||||
import { jsxConverters } from './converters'
|
import { jsxConverters } from './converters'
|
||||||
|
import styles from "./richtext.module.scss"
|
||||||
|
|
||||||
|
|
||||||
type RichTextProps = {
|
type RichTextProps = {
|
||||||
|
|
@ -12,5 +13,5 @@ type RichTextProps = {
|
||||||
// Use this everywhere instead of importing RichText directly from Payload, so
|
// Use this everywhere instead of importing RichText directly from Payload, so
|
||||||
// the converters can never be forgotten.
|
// the converters can never be forgotten.
|
||||||
export const RichText = ({ data }: RichTextProps) => (
|
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 {
|
.half {
|
||||||
width: 50%;
|
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