Skip to content
This repository was archived by the owner on Nov 24, 2019. It is now read-only.
This repository was archived by the owner on Nov 24, 2019. It is now read-only.

Specificity clash with css modules & less loader #7

Description

@RcKeller

We use Ant Design by Ali financial as our UI kit. This was chosen because of the high quality, consistent APIs, wide array of data-driven components, theme centric styles and decent documentation. Using babel-plugin-import, I can bring in components with styles overriden by app/css/theme.less to be compliant with UW branding.

However, normalize.css is included in there, and after webpack processes that, it ends up overriding styles on a lot of miscelaneous components such as articles, sections and divs. This wouldn't be a problem, except it often wins in specificity wars. See app/css/main.css, where I have to boost my specificity to apply global typography.

Solution? Find a way to exclude normalize.css (as much as I'd hate to, forking antd is an option) or see how other people have married these technologies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions