You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to allow my grid item card to be clickable but it is not working with any of the methods that I have tried.
I have tried doing :target: only with :image: and link under grid-item-card (with both doc and ref) but none of these options are working.
.. grid:: 4
.. grid-item-card::
:link: mini_visium
:link-type: ref
.. image:: images/getting_started/icons_configuration.png
:target: :ref:`mini_visium` (*Note: referenced as .. _minivisium: in subsections | I have also tried using the file path)
I can have a card point to a specific file (using :link-type: doc), but when I want to use ref instead, I cant get it to work. Seems it has to do something with linking to references that are only specified later. I've got my directives specified lower down in the document than the grid.
I've tried the following (all nested in a .. grid:: directive):
Activity
try reproducing bug in #77
chrisjsewell commentedon Jul 30, 2022
Heya, in #84 I tried to reproduce your issue, however, as you can see here https://sphinx-design--84.org.readthedocs.build/en/84/test.html, it seems to work fine?
Kimvana commentedon Feb 24, 2025
I have the same issue, when trying to have a clickable card direct to an internal reference-type link, it doesn't work.
I'm running sphinx 7.3.7, sphinx-design 0.6.0, python 3.10.11.
I can have a card point to a specific file (using :link-type: doc), but when I want to use ref instead, I cant get it to work. Seems it has to do something with linking to references that are only specified later. I've got my directives specified lower down in the document than the grid.
I've tried the following (all nested in a .. grid:: directive):
chrisjsewell commentedon Jul 12, 2026
Closing as this has been waiting on a reproducible example since 2022. If you're still hitting problems with clickable cards, please open a fresh issue with a minimal snippet plus your theme and package versions and we'll take a look — the current
:link:/:link-type:examples are at https://sphinx-design.readthedocs.io/en/latest/cards.html#clickable-cards. Thanks for the original report!