Skip to content

Target styles of children components #197

@Tomekmularczyk

Description

@Tomekmularczyk

Hey I started to use styled-jsx with React-Boostrap and I'm having some troubles styling components.

I want to add/override some styles of .navbar-header class but code below doesnt work:

zrzut ekranu 2017-05-18 o 13 43 58

Even if I add custom class to Boostrap component styles doesn't apply either:

zrzut ekranu 2017-05-18 o 13 46 13

The only solution I came up with is adding global styling, but this seems (to me at least) wrong.

zrzut ekranu 2017-05-18 o 13 48 34

Is there something I do wrong, or this is how it should be in a first place?

P.S I couldn't paste code with proper formatting and I made screenshots.

REPO: https://github.com/Tomekmularczyk/styled-jsx-test

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