Skip to content

Conversation

@lidiazuin
Copy link
Collaborator

No description provided.

@lidiazuin lidiazuin requested a review from recrwplay February 27, 2025 12:16
@netlify
Copy link

netlify bot commented Feb 27, 2025

Deploy Preview for neo4j-docs-ui ready!

Name Link
🔨 Latest commit 0894948
🔍 Latest deploy log https://app.netlify.com/sites/neo4j-docs-ui/deploys/67c82b3e0590110008303799
😎 Deploy Preview https://deploy-preview-298--neo4j-docs-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

line-height: 2rem;
}

body.docs-ndl .cards .sect2:hover,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@recrwplay I only managed to fix the hover effect, but not the a state to make [.cards] without .selectable or .not-selectable to become clickable. Could you help me, please? :))

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cards can be displayed in two ways:

  • Selectable - the first link in [.links] on this card is wrapped round the card contents. The whole card becomes a link. No links are displayed on the card
  • All other cards - The card itself is not selectable. The links in [.links] are displayed on the card.

A card becomes selectable if it has [.selectable] applied, or if it's in a section that has that role.

It sounds like you want to make all cards clickable, including cards that display a link. What happens when there is more than one link on a card?

@lidiazuin
Copy link
Collaborator Author

@MarkWoulfeNeo4j

Choose from self-managed local and cloud deployments, or fully-managed options.

[.link]
[.link.display]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MarkWoulfeNeo4j if we merge this change, then you'll need to update GTM with this new subclass of links in cards in the homepage, I think

Copy link
Collaborator

@recrwplay recrwplay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to achieve the desired behavior.

I do have a small issue with cards in general now - we now have cards that look the same but behave differently (some cards that display a link are also selectable, for some it's only the displayed link that is selectable), and cards that look different but behave the same (some selectable cards display a link, some don't). I'd rather we didn't, but I don't want to make it a blocker to this PR.

@lidiazuin lidiazuin merged commit 356e625 into neo4j-documentation:master Mar 5, 2025
4 of 5 checks passed
@lidiazuin lidiazuin deleted the clickable-cards branch March 5, 2025 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants