Skip to content

Conversation

@ldez
Copy link
Contributor

@ldez ldez commented Aug 21, 2025

Allows disabling the border.

Unlike the callouts and GH alerts, badges don't need to have "level" type.
So I changed the parameter type to color to set the color/type of the badge.

I created a compatibility layer, so the previous behavior is still available (type parameter and previous type names).

I also added more colors: green, indigo, orange, amber, purple (the existing colors related to types were gray, blue, yellow, red).
Those colors were already used by other components (callouts, GH alerts).

More colors could be added in the future if it's something you are interested in.

Demo: https://deploy-preview-774--hugo-hextra.netlify.app/docs/guide/shortcodes/others/

@netlify
Copy link

netlify bot commented Aug 21, 2025

Deploy Preview for hugo-hextra ready!

Name Link
🔨 Latest commit ca711db
🔍 Latest deploy log https://app.netlify.com/projects/hugo-hextra/deploys/68a9c5396a46540008792d69
😎 Deploy Preview https://deploy-preview-774--hugo-hextra.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.

Copy link
Owner

@imfing imfing left a comment

Choose a reason for hiding this comment

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

looks great! thanks

@ldez
Copy link
Contributor Author

ldez commented Aug 22, 2025

I forgot to update the i18n pages, I will add them

@imfing imfing merged commit 22c1a4f into imfing:main Aug 23, 2025
@ldez ldez deleted the feat/badges-border-colors branch August 23, 2025 13:43
@imfing imfing mentioned this pull request Aug 25, 2025
18 tasks
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