Skip to content

Button Chekbox formatting gets offset when usinng Stacks as children #234

@Kashargul

Description

@Kashargul
  <Button.Checkbox
    checked={active_decals.includes(decal)}
    onClick={() =>
      act('toggle_decal', { value: decal })
    }
  >
    <Stack fill>
      <Stack.Item>{decal}</Stack.Item>
      <Stack.Item>
        {active_decals.includes(decal)
          ? `(${active_decals.indexOf(decal) + 1})`
          : ''}
      </Stack.Item>
    </Stack>
  </Button.Checkbox>

Instead of filling out the current row, the text gets moved to a new line when trying to use stacks as `Button.Checkbox children

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions