chenglou / chenglou/RCSS

Support por custom css rules

Open
#65 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
284
Forks
17
PR merge metrics
No merged PRs in 30d

Description

It's not clear from the docs, there is only support for pseudo classes, like :hover?

I was looking into expressing:

```
RCSS.registerClass({
'.child': {
width: '100%'
}
```

Of course, styles could be empty for this one. But the generated css could contain the rule.
Is this supported or in the roadmap?

One rationale is that many components in React support passing a className via props, but it's common to override some styles for inner elements (such as in react-boostrap)

thanks

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the documentation and the RCSS.registerClass entry point to determine how pseudo-class rules and generated CSS are currently handled. Clarify the intended behavior for a '.child' rule with an empty style object, then define the scope and acceptance criteria for supporting custom CSS selectors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.