Skip to content

fix(bundle): align the web debug toolbar item with the Symfony core styles - #671

Merged
Spomky merged 1 commit into
4.1.xfrom
fix/profiler-toolbar-styles
Aug 6, 2026
Merged

fix(bundle): align the web debug toolbar item with the Symfony core styles#671
Spomky merged 1 commit into
4.1.xfrom
fix/profiler-toolbar-styles

Conversation

@Spomky

@Spomky Spomky commented Aug 6, 2026

Copy link
Copy Markdown
Member

Fixes #663.

LabelJWT was wrapped in sf-toolbar-status, which renders it on a grey badge. Core uses sf-toolbar-value for a toolbar item value, so the label now sits on the toolbar background like the other items.

Icon — the item embedded a base64 PNG export of the jwt.io logo: fixed colours, on an opaque white background, which is what made it stand out next to the monochrome core icons.

It is replaced by the official SVG from jwt.io (https://jwt.io/img/pic_logo.svg), extracted to Resources/views/data_collector/icon.svg and pulled in with source(), the same mechanism the WebProfilerBundle uses for @WebProfiler/Icon/*.svg. The paths are normalised to the 24×24 grid of the core icons (2 units of padding, role="img", <title>) and painted with currentColor instead of the brand palette, so the mark inherits the toolbar foreground colour and works in both the light and the dark theme — including the two branches that jwt.io itself renders white or black depending on the background.

The menu block of the profiler panel uses the same file.

The sf-toolbar-status spans of the dropdown info pieces are left alone — the CSS classes do the job there.

Rendering only; no behavioural change and no public API touched.

@Spomky Spomky self-assigned this Aug 6, 2026
@Spomky Spomky added this to the 4.2.0 milestone Aug 6, 2026
@Spomky Spomky added the bug label Aug 6, 2026
@Spomky Spomky modified the milestones: 4.2.0, 4.1.9 Aug 6, 2026
…tyles

The item label used `sf-toolbar-status`, which renders it on a grey badge
instead of the plain value styling of the core items. It now uses
`sf-toolbar-value`.

The icon was a base64 PNG export of the jwt.io logo, on an opaque white
background and with fixed colours, which looked out of place next to the
monochrome core icons. It is replaced by the official jwt.io SVG, normalised
to the 24x24 grid used by the WebProfilerBundle icons and painted with
`currentColor`, so the mark follows the toolbar foreground in both the light
and the dark theme -- including the two branches that jwt.io itself renders
white or black depending on the background.

Fixes #663
@Spomky
Spomky force-pushed the fix/profiler-toolbar-styles branch from 8406888 to b62ea89 Compare August 6, 2026 21:14
@Spomky
Spomky merged commit ed32b71 into 4.1.x Aug 6, 2026
@Spomky
Spomky deleted the fix/profiler-toolbar-styles branch August 6, 2026 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The web debug toolbar item does not match the styles of Symfony core items

1 participant