Skip to content

Conversation

@recrwplay
Copy link
Collaborator

Broadly, aiming to sprinkle a little design system thinking onto these elements.

The trigger was running a quick lighthouse check and finding that we could improve contrast between text and background in admonitions. So they now all have the same font color as body text, and use a complimentary colour for link text in the admonition. A border is added, and border-radius.

This could be extended by moving the icon and text representing the admonition type into the box, but it requires a little more work, because asciidoctor outputs admonitions as a table. An option here is to use js to replace the table layout with divs and style those divs. It could also be that while admonitions in the docs are roughly equivalent to a type of banner in the design system, we don't necessarily need to copy the exact style: the banner we are copying would only ever contain at most a few lines of text, whereas admonitions in docs can be longer and contain mixed content types.

Example blocks get a docs colour border + border radius and a cleaner style for titles.

Tabbed sections have been updated to remove the index card style and also have a docs color border.

@netlify
Copy link

netlify bot commented Nov 21, 2025

Deploy Preview for neo4j-docs-ui ready!

Name Link
🔨 Latest commit 2df0bfb
🔍 Latest deploy log https://app.netlify.com/projects/neo4j-docs-ui/deploys/6920885d4177030008909a7c
😎 Deploy Preview https://deploy-preview-348--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 project configuration.

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