This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-04af3ad6-8152-4d0f-9c25-2e12c9ed0d39 XWIKI-24154 Open

The .label bootstrap class does not look correct inline

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-f6e1fde1-161d-4028-b156-f370b36edfe3 Charpentier Lucas created this issue on 24/Mar/26 16:48
 
Summary: The .label bootstrap class does not look correct inline
Issue Type: cid:jira-generated-image-avatar-04af3ad6-8152-4d0f-9c25-2e12c9ed0d39 Bug
Affects Versions: 18.2.0-rc-1
Assignee: Unassigned
Attachments: Screenshot From 2026-03-24 16-03-01.png
Components: Bootstrap
Created: 24/Mar/26 16:48
Priority: cid:jira-generated-image-static-minor-744d6fb1-48ec-467a-a641-716d1cf0c8b1 Minor
Reporter: Charpentier Lucas
Description:

According to https://getbootstrap.com/docs/3.4/components/#badges the .badge class should be usable inline.

On xwiki.org, we noticed that the version macro looks odd (https://www.xwiki.org/xwiki/bin/view/DocApp/Code/VersionMacro ). This macro uses the badge class from our bootstrap fork to style its inline span.

The badge is off center and there's no spacing with the line below. Additionally the line-height is different from regular text.

Note that this class is barely used in XS (only place I could find is for the notification count on the topbar menu, which is not inline and heavily customized).
___
This issue can be solved in two radically different ways:

  • Provide a fix to the .badge class so that it looks supported
  • Explicitely state that it's not supported by XWiki and move its styles to a legacy module.