Skip to content

[Bug]: Label - celebration animation is broken is small size #3128

@talkor

Description

@talkor

Vibe version

^3.0.0

Describe the bug

When using the Label components with the celebrationAnimation and size="small" and when the animation is triggered,
the animated lines are getting wrong dimensions and are overflowing.
https://github.com/user-attachments/assets/337ee7a6-7479-4e3e-a3a9-9daffa05b694

Screen.Recording.2025-09-29.at.11.15.27.mp4

Expected behavior

The animated lines and border radiuses should match the border of the Label.

Steps to reproduce

() => {
  const [animate, setAnimate] = useState(false);
  useEffect(() => {
    setTimeout(() => {
      setAnimate(false);
    }, 500);
  }, [animate]);
  return (
    <>
      <Label
        id="celebration-label"
        text="New"
        size="small"
        kind="line"
        celebrationAnimation={animate}
      />
      <Button
        id="celebration-button"
        ariaLabel="Trigger celebration animation"
        size="small"
        kind="tertiary"
        onClick={() => setAnimate(true)}
      >
        Click to celebrate
      </Button>
    </>
  );
}

Reproduction example link

No response

System Info

Additional context, Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions