Skip to content

Commit

Permalink
style: adjust quote styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Luqmaan Essop committed Apr 16, 2024
1 parent aaaa758 commit 94cb627
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
19 changes: 19 additions & 0 deletions packages/ui/src/components/Organisms/PageContent/BlockMarkup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,25 @@ export function BlockMarkup(props: BlockMarkupFragment) {
</li>
);
},
blockquote: ({ children }: PropsWithChildren<{}>) => {
return (
<blockquote className="border-l-0 relative pl-0">
<svg
width="32"
height="24"
viewBox="0 0 32 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M18.6893 24V14.1453C18.6893 6.54 23.664 1.38533 30.6667 0L31.9933 2.868C28.7507 4.09066 26.6667 7.71867 26.6667 10.6667H32V24H18.6893ZM0 24V14.1453C0 6.54 4.99733 1.384 12 0L13.328 2.868C10.084 4.09066 8 7.71867 8 10.6667L13.3107 10.6667V24H0Z"
fill="#9CA3AF"
/>
</svg>
{children}
</blockquote>
);
},
}}
markup={props.markup}
/>
Expand Down
8 changes: 7 additions & 1 deletion packages/ui/src/tailwind.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind utilities;

/* Prose overrides */
.lg\:prose-xl
:where(blockquote):not(:where([class~='not-prose'], [class~='not-prose'] *)) {
padding-left: 0 !important;
}

0 comments on commit 94cb627

Please sign in to comment.