Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Docs Title Styling Fix – Code Blocks #2223

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions components/tinaMarkdownComponents/docAndBlogComponents.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { GraphQLQueryResponseTabs } from 'components/ui/GraphQLQueryResponseTabs';
import Image from 'next/image';
import { useState } from 'react';
import { BiRightArrowAlt } from 'react-icons/bi';
import { FaMinus, FaPlus } from 'react-icons/fa';
import { FiLink } from 'react-icons/fi';
import {
TinaMarkdown,
Components,
} from 'tinacms/dist/rich-text'
Components,
TinaMarkdown,
} from 'tinacms/dist/rich-text';
import { getDocId } from 'utils/docs/getDocIds';
import { WarningCallout } from 'utils/shortcodes';
import { Prism } from '../styles/Prism'
import Image from 'next/image';
import { Prism } from '../styles/Prism';

export const docAndBlogComponents: Components<{
Iframe: { iframeSrc: string; height: string }
Expand Down Expand Up @@ -280,9 +280,9 @@ export const docAndBlogComponents: Components<{

return (
<HeadingTag id={id} className="relative cursor-pointer">
<a href={linkHref} className="no-underline flex items-center group">
<a href={linkHref} className="no-underline group">
{children}
<FiLink className="ml-2 opacity-0 group-hover:opacity-100 transition-opacity duration-200" />
<FiLink className="ml-2 opacity-0 group-hover:opacity-100 transition-opacity duration-200 inline-flex mb-2" />
</a>
</HeadingTag>
);
Expand Down
Loading