Partial style merging
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 10.3k
- Forks
- 481
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 13
Description
### Describe the feature request
This can be resolved to the same style
```js
const styles = stylex.create({
foo: {
color: {
default: 'red',
':focus': 'blue'
}
},
bar: {
color: stylex.partial({
':focus': 'green'
})
}
})
stylex.props(styles.foo, styles.bar)
```
as this
```js
const styles = stylex.create({
baz: {
color: {
default: 'red',
':focus': 'green'
}
}
})
stylex.props(styles.baz)
```
Contributor guide
Assessment
This issue has not been assessed yet.