Skip to content

Ring label mispositioned when value is 0 #391

@jlowin

Description

@jlowin

When a Ring's value is 0, the label renders offset to the right of the ring instead of centered. At any non-zero value the label centers correctly.

Repro:

from prefab_ui.components import Ring

Ring(value=0, label="0", variant="info", size="lg")

Likely an SVG text anchor or transform edge case when the arc length is zero.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working. Reports of errors, unexpected behavior, or broken functionality.rendererRelated to the TypeScript/React renderer.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions