Skip to content

[gatsby-theme-minimal-blog] Styling the header anchor link SVG icon #910

Answered by artfreyr
artfreyr asked this question in Questions
Discussion options

You must be logged in to vote

After a couple of tries I have managed to style the anchor icon! Will leave my solution here, but open to suggestions on better ways to do it.

I was previously shadowing files in the wrong directory. The directory should not have /src in it.

To style the icon, I shadowed the post.tsx file by putting that in @lekoarts/gatsby-theme-minimal-blog/components, then updated the relative imports to the following:

import Layout from "@lekoarts/gatsby-theme-minimal-blog/src/components/layout"
import ItemTags from "@lekoarts/gatsby-theme-minimal-blog/src/components/item-tags"
import Seo from "@lekoarts/gatsby-theme-minimal-blog/src/components/seo"
import PostFooter from "@lekoarts/gatsby-theme-minim…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by artfreyr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant