elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.61k stars 8.22k forks source link

CSS Deprecation Issue for Team: kibana-visualizations, Found in file: workspace_panel_wrapper.scss #190925

Closed petrklapka closed 1 month ago

petrklapka commented 2 months ago

DEPRECATION: Sass's behavior for declarations that appear after nested rules will be changing to match the behavior specified by CSS in an upcoming version. To keep the existing behavior, move the declaration above the nested rule. To opt into the new behavior, wrap the declaration in & {}.

The file below has one or more instances where CSS behavior will change unless the declaration is moved above the nested rule. Line numbers for the declaration along with the file and line numbers in which the nested rule appears are shown below.

More info: https://sass-lang.com/d/mixed-decls

kibana/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel_wrapper.scss

   ┌──> kibana/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel_wrapper.scss
22 │       flex-grow: 1;
   │       ^^^^^^^^^^^^ declaration
   ╵
   ┌──> kibana/node_modules/@elastic/eui/src/global_styling/mixins/_helpers.scss
31 │ ┌   &::-webkit-scrollbar-corner,
32 │ │   &::-webkit-scrollbar-track {
33 │ │     background-color: $trackBackgroundColor;
34 │ │   }
   │ └─── nested rule
   ╵

   ┌──> kibana/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel_wrapper.scss
23 │       display: flex;
   │       ^^^^^^^^^^^^^ declaration
   ╵
   ┌──> kibana/node_modules/@elastic/eui/src/global_styling/mixins/_helpers.scss
31 │ ┌   &::-webkit-scrollbar-corner,
32 │ │   &::-webkit-scrollbar-track {
33 │ │     background-color: $trackBackgroundColor;
34 │ │   }
   │ └─── nested rule
   ╵

   ┌──> kibana/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel_wrapper.scss
24 │       align-items: stretch;
   │       ^^^^^^^^^^^^^^^^^^^^ declaration
   ╵
   ┌──> kibana/node_modules/@elastic/eui/src/global_styling/mixins/_helpers.scss
31 │ ┌   &::-webkit-scrollbar-corner,
32 │ │   &::-webkit-scrollbar-track {
33 │ │     background-color: $trackBackgroundColor;
34 │ │   }
   │ └─── nested rule
   ╵

   ┌──> kibana/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel_wrapper.scss
25 │       justify-content: stretch;
   │       ^^^^^^^^^^^^^^^^^^^^^^^^ declaration
   ╵
   ┌──> kibana/node_modules/@elastic/eui/src/global_styling/mixins/_helpers.scss
31 │ ┌   &::-webkit-scrollbar-corner,
32 │ │   &::-webkit-scrollbar-track {
33 │ │     background-color: $trackBackgroundColor;
34 │ │   }
   │ └─── nested rule
   ╵

   ┌──> kibana/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel_wrapper.scss
26 │       border-radius: $euiBorderRadius;
   │       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ declaration
   ╵
   ┌──> kibana/node_modules/@elastic/eui/src/global_styling/mixins/_helpers.scss
31 │ ┌   &::-webkit-scrollbar-corner,
32 │ │   &::-webkit-scrollbar-track {
33 │ │     background-color: $trackBackgroundColor;
34 │ │   }
   │ └─── nested rule
   ╵
elasticmachine commented 2 months ago

Pinging @elastic/kibana-visualizations (Team:Visualizations)