Skip to content

NameValuePair alignment #6716

@tdonhauser

Description

@tdonhauser

Hello,

I try to align the Name and the value of NameValuePair in column mode like this:

 <NameValueList
    valueProps={{ width: "auto", align: "start" }}
  >
    <NameValuePair name="File log level">
        <Select
          options={[
            "Debug",
            "Info",
            "Warning",
            "Error",
            "Panic",
            "Fatal",
          ]}
          // value={value}
          // onChange={({ option }) => setValue(option)}
        />
    </NameValuePair>
  </NameValueList>

Expected Behavior

I want the Name (Text-Element) to be in the same vertical position as the value (see red/green line in the picture).

Actual Behavior

Right now the label has a different vertial position than the value object. But I want both to be horizontally centered. See example:
image

Environment

I would be nice if someone can give me an idea how to solve this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugissue that does not match design or documentation and requires code changes to address

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions