system-props / system-props

Responsive, theme-based style props for building design systems with React. Written in TypeScript.

Home Page:https://system-props.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`_disabled` attribute is not working

Kerumen opened this issue · comments

In its current form, the _disabled pseudo selector is not working. It generates a class .hash [disabled] targeting the descendant element and not the disabled one.

To fix it, we should change it to

_disabled: '&[disabled], &[disabled]:hover, &[disabled]:focus, &[aria-disabled], &[aria-disabled]:hover, &[aria-disabled]:focus',

I don't know if you want me to open the PR? I can do it, and we should also add a test to ensure everything is working as intended.

Ya that would be great!