-
Notifications
You must be signed in to change notification settings - Fork 530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make TracePage components themeable [Subtask] #509
Comments
@aocenas I considered commenting on PR#507 but I think it makes sense to consolidate this discussion here.
What led you/others at Grafana to land on EmotionJS? |
@everett980 please take a look at our overview here: grafana/grafana#15438 The most important factor for us was to be able to effectively theme components based on component props/state as well as have styles as close to the component as possible. Important thing with Emotion was also the fact that we could switch the styled vs className paradigms (descibed in the issue above) easily without the need of changing the framework. Currently we use emotion package (className approach) but soon we will migrate to @emotion/core and |
Thanks @dprokop
Did you figure out a way to use the |
@dprokop what is the status of migrating to v10 of emotion on our side? @everett980 Here I used the older framework agnostic way to use emotions without the |
Grafana decided to do their own fork to reskin, so I am closing this out. |
Requirement - what kind of business use case are you trying to solve?
Subtask from #507
Problem - what in Jaeger blocks you from solving the requirement?
Proposal - what do you suggest to solve the problem or improve the existing situation?
The resulting package should provide some theme-ability options. For the Grafana usecase there is concern of making the look and feel more aligned with other parts of Grafana and also that we provide dark/light theme.
There are 2 main ways to do this:
Apart from changes in styles there may be a need for injection of custom components. For example using a custom button or icon component may be more reasonable than trying to manipulate just the styles through theming. This could be done either by having optional props or by provider pattern.
Any open questions to address
The text was updated successfully, but these errors were encountered: