Skip to content

Extending styles of sticky and top states #67

@ryanmcmanimie

Description

@ryanmcmanimie

I know you provided the className property but I'm curious if there's a way to specifically target the states (i.e. sticky, at the top of page, etc..) as I see that you do swap the classes.

When it's at the top I wanted to drop the opacity of the background so my hero image showed through and invert the colors of my header links. I can do it fine targeting the randomly generated class names but my understanding is that they're apt to change eventually. New to styled components so perhaps I'm missing something though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions