Skip to content

Select className does not size the outer field #5322

Description

@HaakonSvane

Describe the bug

Passing className to Select reaches an inner wrapper rather than the outer labeled field, so consumers can't size the whole control through the documented prop.

Steps to reproduce

  1. Render <Select className="w-64" label="..." items={[...]} />
  2. Inspect the DOM — the class lands on an inner element, not the outermost field wrapper.
  3. The overall control doesn't resize as expected.

Expected behavior

className sizes/styles the full labeled field.

Specifications

  • Version: @equinor/eds-core-react@3.0.0-beta.1

Additional context

Workaround: size an external wrapper element around Select instead of relying on className for outer sizing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions