-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
[css] Bringing Bootswatch in line with external variables, and other CSS tweaks #8781
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
864e0a9
to
8da09b8
Compare
Codecov Report
@@ Coverage Diff @@
## master #8781 +/- ##
==========================================
+ Coverage 58.87% 58.97% +0.09%
==========================================
Files 359 359
Lines 11330 11333 +3
Branches 2784 2787 +3
==========================================
+ Hits 6671 6684 +13
+ Misses 4481 4471 -10
Partials 178 178
Continue to review full report at Codecov.
|
mistercrunch
approved these changes
Jan 13, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CATEGORY
Choose one
SUMMARY
Bootstap and Bootswatch (Cosmo theme) have a bunch of colors and things in them that have not yet been brought inline with the global styles. This PR will aim to address that.
This PR also does the following:
• Updates Toasts to use global status (success/info/warn/error) colors.
• Updates those global status colors to be consistent, compromising between the two values used in the Cosmo theme and elsewhere in the CSS codebase
• Bumps LESS loader, because it seemed to cause no harm and fixes webpack watch mode.
• Includes the Cosmo
variables.less
file at the bottom of the mainvariables.less
file, since it's now acting more like an extension of those global vars. It also lets us include only the main variables file in our components, reducing reliance on Cosmo in general.• Prettier-ing of
superset.less
which points out a hole in theclean-css
script I'll address in another quick PR.• Expands the scope of CSS linting to include
/superset/stylesheets
and not just/sueperset/src
• Fixes a CSS-based issue with the Adhoc Metric Title editor, where the height jumps when entering/exiting edit mode. This was causing the Save button to be finnicky, and Cypress tests to fail. When the mouse went down, the field would lose focus and disappear, shrinking the popover, and then when the mouse went up, it would no longer be over the Save button, thus the click wouldn't register. The height now remains consistent. Animations below.
• Fixes an issue where
eslint
was failing due to thenode_modules
folder insuperset/assets/cypress_base
(fyi @nytai ). Added**/node_modules
to.eslintignore
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
A few of the more significant/visible changes:
Before (using a "pink" color that's quite near the error/danger color):
![image](https://user-images.githubusercontent.com/812905/71062054-6ecebf00-211e-11ea-88ac-5d6807dc0a95.png)
After (using the 'info' color since this seems like, well, info):
![image](https://user-images.githubusercontent.com/812905/71062291-003e3100-211f-11ea-9299-ccd5c1b2ae38.png)
Before (warning color that didn't match the Cosmo theme's warning color):
![image](https://user-images.githubusercontent.com/812905/71062506-85c1e100-211f-11ea-901a-4268582c10e8.png)
After (the middle ground color between the prior one and Cosmo's warning color):
![image](https://user-images.githubusercontent.com/812905/71062423-472c2680-211f-11ea-880d-0db971ebfc1c.png)
Before (ad hoc metric title bar height changing)
![form_before](https://user-images.githubusercontent.com/812905/71133244-c4eb4300-21ae-11ea-9bfc-b134bdbae0c1.gif)
After (ad hoc metric title bar height consistent)
![form-after](https://user-images.githubusercontent.com/812905/71133232-bd2b9e80-21ae-11ea-9dcb-6641e339ebaf.gif)
ADDITIONAL INFORMATION
REVIEWERS
@mistercrunch