appbaseio / appbaseio/reactivesearch

Provide better options for styling - particularly nested elements

オープン
#1,370 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
JavaScript
スター
4.9k
フォーク
478
PR マージ指標
30日以内にマージされた PR はありません

説明

**Affected Projects**
React

**Is your feature request related to a problem? Please describe.**
This is a great library overall, so it's a shame it appears handicapped regarding fine-grained and intuitive options for styling.
E.g. I need to provide inline styling to the input element of a CategorySearch component. This is so I can pass the `color` property as a variable based on my app's active theme (e.g. if dark mode is active, the searchbar should show white text, and vice versa).
As far as I'm aware this is not possible right now. If I provide the style prop to CategorySearch, the `color` attribute is applied to the wrapper but does not change the text color of the input element it wraps (even when adding `!important`). Providing a class name is also pointless because I can't control the theme variable inside a CSS stylesheet.

**Describe the solution you'd like**
A simple inline-styling solution for every component; not just the wrapper, but also every child element inside it.

**Describe alternatives you've considered**

**Additional context**

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。