Skip to content

Support style in Expandable #97

@stoyle

Description

@stoyle

The props of Expandable says it support a style prop, however I cannot see it is actually added anywhere. Also checked the sources, but I might of course be wrong.

It would help us quite a bit to handle custom styling. However, the way our component was designed we need to target the inner button and span, and that may not what this style prop was intended for?

Anyways, our styling targets a surrounding div, targeted by css modules, and we have overriden styles the following way. If there is a way to prevent this, that would of course be awesome.

.expandArea div button {
    display: flex;
    align-items: center;
}

.expandArea div button span {
    font-weight: normal;
    margin-right: 18px;
    hyphens: manual;
    overflow-wrap: break-word;
    display: inline-block;
}

.expandArea div button:focus,
.expandArea div button:hover {
    text-decoration: none;
}

Will be happy to provide a PR if you give me a direction for how to fix this.

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