Update label syntax #1914
Reference in New Issue
Block a user
Delete Branch "better-badges"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Completely changes badges, so now I have to go through and swap them all out.
New syntax will in theory look like:
Instead of the old syntax (for comparison)
Color: optional, defaults to info
Link: optional external link
Text:
requiredactually this should be optional now, if we want icon-only badgesIcon: optional, defaults to
far fa-question-circlefor labels with tooltips,fas fa-external-link-altfor links (without tooltips), and disabled for labels without tooltips or linksTooltip: optional, provides hover text
Separator between labels:
|Separators between attributes:
::(changed so that we can usehttps://in a label despite it having a:)Separator between attribute keys and values:
==This PR also adds
badge.htmlto_includes, which can be used like this anywhere, so we can get the non-cardv2 badges switched as well.Had a good look in a local build at all pages.
I don't think you've missed anything that I could see.
I wonder if at some point we could use this in some way instead for warnings next to worth mentioning recommendations etc or should we do something like this?