Skip to content
Discussion options

You must be logged in to vote

Hi @shyamajp

Thanks or posting your question. Our components will block any extra styles that are passed. This helps maintain consistency and encapsulated styles. So a Heading will always look like any other Heading.

You could use our Anchor component with the Heading component like so:

<Heading as="h4" variant="heading40">
    <Anchor href={url}>
        This is the title
    </Anchor>
</Heading>

That way you get the Anchor styles. Our Anchor should be able to work with React Router. Take a look a this previous discussion for a couple helpful links / options: #758 (comment)

Let us know if that helps.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@shyamajp
Comment options

@shyamajp
Comment options

@richbachman
Comment options

@shyamajp
Comment options

Answer selected by TheSisb
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants