Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Consistent classNames for outer component containers #825

@wbrgss

Description

@wbrgss

Because CSS has a top-down, one-way flow for selecting HTML elements, if the outer containers of components do not have a permanent className in addition to one set by the user, it makes it difficult to select the containers themselves or even (conditionally) their nested elements (even if these do have classNames).

For example, this commit 5aa0ea8 set a className on the dcc.Dropdown outer container, which makes it easier to select with CSS. It would be nice to do this in a consistent way for other components.

This was done well for another Dash library in plotly/dash-daq#80 (comment) — seems like a good PR to draw inspiration from.

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