added sass lint to Canvas#43410
Conversation
snide
left a comment
There was a problem hiding this comment.
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 { | ||
| @include euiScrollBar; | ||
| height: 258px; |
There was a problem hiding this comment.
Did it not yell about the pixel value here?
There was a problem hiding this comment.
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.
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.
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
| // This hex is OK, we always want it black | ||
| .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.
$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
| - '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' |
|
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 |
ryankeairns
left a comment
There was a problem hiding this comment.
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
ryankeairns
left a comment
There was a problem hiding this comment.
👍 LGTM. Thanks for addressing all the feedback.
|
Pinging @elastic/kibana-canvas |
💚 Build Succeeded |
snide
left a comment
There was a problem hiding this comment.
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