-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
added sass lint to Canvas #43410
added sass lint to Canvas #43410
Conversation
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.
Some small comments. Just checked the code and didn't do a browser pass. Maybe @ryankeairns can help there. He's likely the most familiar with canvas.
.autocompleteItems, .autocompleteReference { | ||
.autocompleteItems, | ||
.autocompleteReference { | ||
@include euiScrollBar; | ||
height: 258px; |
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.
Did it not yell about the pixel value here?
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.
Nope, it's not giving any errors for px values. Maybe it needs to be configured or something?
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.
I thought for sure I set this up. I guess not. We don't have it on in EUI either. Something we can look into in a later PR.
https://github.com/sasstools/sass-lint/blob/master/docs/rules/variable-for-property.md
box-shadow: 0 2px 2px -1px rgba(153, 153, 153, 0.3), 0 1px 5px -2px rgba(153, 153, 153, 0.3); | ||
background-color: $euiColorEmptyShade; | ||
border: 1px solid $euiColorDarkShade; | ||
box-shadow: 0 2px 2px -1px transparentize($euiColorMediumShade, .7), 0 1px 5px -2px transparentize($euiColorMediumShade, .7); |
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.
Not 100% sure what this is used for, but a reminder we have a bunch of shadow mixins. They may or may not be a good sub.
https://github.com/elastic/eui/blob/master/src/global_styling/mixins/_shadow.scss
.canvasLayout { | ||
background: #000; // This hex is OK, we always want it black | ||
background: #000; // sass-lint:disable-line no-color-literals |
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.
$euiColorInk
will give you this. It's always black.
x-pack/legacy/plugins/canvas/public/components/page_manager/page_manager.scss
Show resolved
Hide resolved
@@ -6,6 +6,7 @@ files: | |||
- 'src/legacy/ui/public/vislib/**/*.s+(a|c)ss' | |||
- 'x-pack/legacy/plugins/rollup/**/*.s+(a|c)ss' | |||
- 'x-pack/legacy/plugins/security/**/*.s+(a|c)ss' | |||
- 'x-pack/legacy/plugins/canvas/**/*.s+(a|c)ss' |
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.
🎉
Also @andreadelrio. I notice a bunch of binary files changed? Any idea what that's about? |
Hm no, no idea. I only touched scss files. |
💚 Build Succeeded |
ebd6f5b
to
90a7f9e
Compare
💚 Build Succeeded |
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.
This is looking much cleaner, thanks for tidying up!
Just a few comments below, hopefully they are all quick fixes. You'll also need to remove those 3 binary zip files from this change. Let me know if you need help with that. Thanks!
x-pack/legacy/plugins/canvas/public/components/fullscreen/fullscreen.scss
Outdated
Show resolved
Hide resolved
7a4512e
to
eeb25ed
Compare
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. Thanks for addressing all the feedback.
Pinging @elastic/kibana-canvas |
💚 Build Succeeded |
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. Don't forget to backport once you merge.
💚 Build Succeeded |
Added sass lint to Canvas
…_update_json_spec * 'master' of github.com:elastic/kibana: (35 commits) fix: 🐛 pass whole action context to isCompatible() method (elastic#43457) Deleted old kbn-top-nav directive (elastic#43168) [ML] Fixing cloning of single metric distinct count job (elastic#43435) Update @elastic/charts version 8.1.6 > 9.1.1 (elastic#43516) [Inspector Views] [Request View] - Migrate inspector_views to new platform (elastic#43191) [ML] Adding loading indicators to all wizard charts (elastic#43382) disable flaky test (elastic#43492) feature(code/frontend): cancel file blob and directory commits request if outdated (elastic#43348) fix(code/frontend): button group url should have previous query string (elastic#43428) [SIEM] Fixes index substring incorrectly matching configured indices and failing to install ML job (elastic#43409) [SIEM] Adds performance enhancements such by removing wasted renderers and adding incremental DOM rendering (elastic#43157) disable flaky test (elastic#37859) Added sass lint to Canvas (elastic#43410) [Maps] add indicator when layer is filtered by search bar (elastic#43283) Properly validate current user password during password change. (elastic#43447) Spaces - allow for hex color codes that include uppercase characters (elastic#43470) [Reporting] Add a bit more logging and a few more logging level promotions (elastic#43415) Partially convert index pattern server to typescript (elastic#43291) [Infra UI] Use sum for aggregating AWS metrics. (elastic#43293) [SIEM] Format bytes columns in timeline (elastic#43147) ...
Summary
Add sass lint to the Canvas directory
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.- [ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support- [ ] Documentation was added for features that require explanation or tutorials- [ ] Unit or functional tests were updated or added to match the most common scenarios- [ ] This was checked for keyboard-only and screenreader accessibility