-
Notifications
You must be signed in to change notification settings - Fork 14
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
Configurable opacity in loading box #1090
base: master
Are you sure you want to change the base?
Conversation
316aad5
to
61d07bd
Compare
61d07bd
to
bac11aa
Compare
Quality Gate passedIssues Measures |
Test results 10 files 1 050 suites 37m 57s ⏱️ Results for commit bac11aa. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1090 +/- ##
=======================================
Coverage 81.29% 81.29%
=======================================
Files 141 141
Lines 5089 5089
=======================================
Hits 4137 4137
Misses 952 952 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but @elfjes should see it before I merge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now, I like the approach here. It's simple and provides flexibility. I'm not a huge fan of the api though. Setting a variable through a tw class looks.... strange. It ís good for ad hoc things that you do once in a while though. Such as now. If we start using this more often, we may want to think about a more tailwind-idiomatic way. Perhaps a small tw-plugin?
Not something we have to think about now however.
One thing that we should consider. The new opacity for the modals is (to me) only subtly different from the default. I would be ok with changing the (default) opacity instead of making it configurable. This would change the opacity of the incident list while loading, but since the change is quite subtle, that's fine.
If we do keep the configurability, it needs some docs
I don't exactly agree that it is strange. Tailwind in no way provides a full set of utilities to cover all the functionality of CSS. That's why they added the possibility to extend existing utilities with arbitrary values. It is common enough that they recommend it as one of the strategies for customizing styles (https://tailwindcss.com/docs/adding-custom-styles#using-arbitrary-values), and they even allow for dropping wrapping with
I don't see equally as simple way to replace the arbitrary value usage with a plugin. Do you have some thoughts about the implementation?
Sounds reasonable to change the default to
Good point, will add if we decide to go ahead with this PR! |
Some people say that tailwind is just syntactic sugar for inline
Oh it's definitely not as simple as what we do now, but I don't think it's that more complex either. I have only glanced at tailwind's plugin system, but it seems that all we'd need to do is create the desired classes (
My initial reaction would be: yagni |
No description provided.