javivelasco / react-css-themr

Easy theming and composition for CSS Modules.
MIT License
591 stars 68 forks source link

Css selector with attribute not working #89

Open DavidHenri008 opened 6 years ago

DavidHenri008 commented 6 years ago

Hi, I am using the React-Toolbox and I understood that it uses the react-css-themr behind the scene. I am trying to use a simple css selector with an attribute and it is not working.

My react code:

import React from 'react'; import PropTypes from 'prop-types'; import { AppBar } from 'react-toolbox/lib/app_bar'; import theme from './AppBar.css';

const PurpleAppBar = props => (

App Example

); export default PurpleAppBar;

My css file:

.appBar { background-color: blue; } .appBar[disabled] { background-color: gray; } .appBar:hover { opacity: 0.5; }

The AppBar is blue and the hover is working. However since the disabled attribute/property is present I would expect the color to be gray.

Thanks.