elastic / kibana

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

[ML] CSS Deprecation Issue for Team: ml-ui, Found in file: help_popover.scss #190926

Closed petrklapka closed 2 weeks ago

petrklapka commented 1 month 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/ml/public/application/components/help_popover/help_popover.scss

   ┌──> kibana/x-pack/plugins/ml/public/application/components/help_popover/help_popover.scss
8  │     max-height: 40vh;
   │     ^^^^^^^^^^^^^^^^ declaration
   ╵
   ┌──> kibana/node_modules/@elastic/eui/src/global_styling/mixins/_helpers.scss
55 │ ┌   &[tabindex='0']:focus:focus-visible {
56 │ │     outline-style: auto; /* 2 */
57 │ │   }
   │ └─── nested rule
   ╵

   ┌──> kibana/x-pack/plugins/ml/public/application/components/help_popover/help_popover.scss
9  │     padding: $euiSizeS;
   │     ^^^^^^^^^^^^^^^^^^ declaration
   ╵
   ┌──> kibana/node_modules/@elastic/eui/src/global_styling/mixins/_helpers.scss
55 │ ┌   &[tabindex='0']:focus:focus-visible {
56 │ │     outline-style: auto; /* 2 */
57 │ │   }
   │ └─── nested rule
   ╵
elasticmachine commented 4 weeks ago

Pinging @elastic/ml-ui (:ml)

imran-yasin commented 4 weeks ago

I wanted to work on this.

peteharverson commented 4 weeks ago

Thanks for the offer of help on this one @imran-yasin but @darnautov has just started working on this one.

peteharverson commented 2 weeks ago

Closing, fixed by #191913