Skip to content

runtime resoluton won't work with composes #113

Closed
@loadingwyn

Description

@loadingwyn

jsx

  <div styleName={type === 'article' ? 'article-card' : 'live-card'}>

css:

.search {
    width: 650px;
}
.live-card {
    composes: search;
    white-space: nowrap;
    font-size: 14px;
    line-height: 60px;
    color: #666666;
}

I get this:

<div class="reprodStyle_live-card_2j7Qr reprodStyle_four-col_2_FEw"></div>

The 'search' class doesn't get added, and the 'four-col' which was composed before is still used.

My environment

software version
Babel 6.24.1
node 8.1.4
Operating System windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions