Using link for card header #1266
-
Hello! What I want to achieve here is to make in $text-color-link since it has link to other pages. Small note: There are multiple cards in this page, each with link to a different page. I tried color props, didn't work here. So the only option is overwrite color in css as in the snippet below? Is there a way to import all the css variables at once to the project? (such as $text-color-link) I appreciate any suggestions! Thank you. jsx
scss
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
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:
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. |
Beta Was this translation helpful? Give feedback.
-
Can you share the design for this modal? |
Beta Was this translation helpful? Give feedback.
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:
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.