Skip to content

Commit

Permalink
link in ul rich text style
Browse files Browse the repository at this point in the history
  • Loading branch information
saml33 committed Apr 2, 2024
1 parent d32a32d commit 52aa378
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/components/rich-text/RichText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,12 @@ const H2 = ({ children, id }) => (
const H3 = ({ children }) => <h3 className="mb-2 text-xl">{children}</h3>
const H4 = ({ children }) => <h3 className="mb-1.5 text-lg">{children}</h3>
const Ul = ({ children }) => (
<ul style={{ listStyle: 'outside disc', marginLeft: '16px' }}>{children}</ul>
<ul
className="rich-text-ul"
style={{ listStyle: 'outside disc', marginLeft: '16px' }}
>
{children}
</ul>
)
const Ol = ({ children }) => (
<ol
Expand Down
4 changes: 4 additions & 0 deletions app/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -284,3 +284,7 @@ b {
.rich-text-ol a {
@apply border-b border-th-active md:hover:border-transparent text-lg text-th-fgd-3;
}

.rich-text-ul a {
@apply border-b border-th-active md:hover:border-transparent text-lg text-th-fgd-3;
}

0 comments on commit 52aa378

Please sign in to comment.