Material-ui: [EnhancedButton] Incompatibility with normalize.css 4.0.0

Created on 22 Mar 2016  路  5Comments  路  Source: mui-org/material-ui

Problem Description

In the most recent alpha with the most recent release of normalize.css (4.0.0), EnhancedButtons are styled like actual buttons.

materialuinormalizeissue

After doing some digging, the problem is with recent changes in both projects. In material-ui, commit 00b6ba1 added passing the type attribute to the inner element, and in normalize.css a recent commit lowered the specificity of a rule giving any element with [type=button] -webkit-appearance: button. I've already opened an issue in their project but because type is not a valid attribute for span and because lowering the specificity is slightly more performant, they don't seem to keen on reverting those changes.

Versions

  • Material-UI: 0.15.0-alpha.2
  • React: 0.14.7
  • Browser: Google Chrome 49.0.2623.87 (64-bit)
duplicate

Most helpful comment

Ho my !
I was looking for this for like 2 hours straight !
Thanks a lot to point it out.

This affect list as well.

All 5 comments

Ho my !
I was looking for this for like 2 hours straight !
Thanks a lot to point it out.

This affect list as well.

I know this one is older -- but I updated the other one to address the core problem already.

Why is this issue closed as a duplicate to itself? I don't see it's resolved. Should it be reopened?

@5amfung sorry, posted the wrong one: https://github.com/callemall/material-ui/issues/4008

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ryanflorence picture ryanflorence  路  3Comments

finaiized picture finaiized  路  3Comments

activatedgeek picture activatedgeek  路  3Comments

iamzhouyi picture iamzhouyi  路  3Comments

sys13 picture sys13  路  3Comments