Bug: @atlaskit/flag first action missaligned

Hi,

when rendering a Flag component with an action button, there’s unintended empty space on the left side of the button area.
As a result, the button does not align vertically with the title and description text inside the Flag. This creates a subtle visual inconsistency — the button looks slightly “indented” compared to the text block above it.

Steps to Reproduce:
Create a flag with any action

Environment:

  • @atlaskitatlaskit/user-picker": “11.5.0”

  • “react”: “^18.3.1”

  • “react-dom”: “^18.3@atlaskit1”

  • @atlaskit/dropdown-menu”: “16.3.3”

  • @atlaskit/icon”: “27.12.0”

  • “styled-components”: “6.1.19”

Expected Behavior:
The button should be horizontally aligned with the title and description text inside the flag.

Actual Behavior:
There’s additional spacing left to the action.

Minimal reproduction:
@atlaskit/flag action missaligned

Its visible here https://atlassian.design/components/flag/examples#actions

vs https://codesandbox.io/p/sandbox/ndsj4p?file=%2Findex.html

View tasks is moved by 12px to the right

@DanielDelCore can you help on that one?

And another issue with date picker - on your sandbox the icon is different and on documentation a new one.

Why documentation build is not aligned with public npm?

https://atlassian.design/components/datetime-picker/date-picker/examples

sandbox form documentation

directly on documentation

@TimothyVanDyke could you have a look at this issue at https://atlassian.design/components/flag/examples#actions vs https://codesandbox.io/p/sandbox/9rxkz3?file=%2Fexample.tsx (Atlassian official example)

Hey @KacperMaciejewski @pch, sorry for the late reply folks.

This issue appears to be due to a missing or misconfigured Compiled CSS-in-JS bundler plugin. It’s responsible for correctly de-duping + ordering styles generated by Compiled.

One way to confirm is by looking at style tags mounted to the HEAD of your app, if they look like below, it means they’re being mounted independently. They should be condensed into a single atomic css file.

Here’s a repro: https://codesandbox.io/p/sandbox/9tckr3?file=%2Fexample.tsx

Hi @DanielDelCore but in the sandbox there is a bug - action label is moved 10 pix to right

I’ve described this already here:

That’s correct, I shared the link because the compiled plugin isn’t currently configured in codesandbox so it’s possible to see how the styles are being mounted incorrectly. Sorry I should have called that out.