@elastic/eui 71.0.0 → 71.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/README.md +0 -7
  2. package/dist/eui_theme_dark.css +7694 -5793
  3. package/dist/eui_theme_dark.min.css +1 -1
  4. package/dist/eui_theme_light.css +7736 -5835
  5. package/dist/eui_theme_light.min.css +1 -1
  6. package/es/components/datagrid/data_grid.a11y.js +251 -0
  7. package/es/components/date_picker/date_picker.a11y.js +83 -0
  8. package/es/components/delay_hide/delay_hide.a11y.js +106 -0
  9. package/es/components/delay_render/delay_render.a11y.js +106 -0
  10. package/es/components/empty_prompt/empty_prompt.a11y.js +63 -0
  11. package/es/components/error_boundary/error_boundary.js +45 -27
  12. package/es/components/page/page_side_bar/page_side_bar.js +3 -0
  13. package/es/components/page/page_template.js +1 -15
  14. package/eui.d.ts +19 -11
  15. package/i18ntokens.json +4 -4
  16. package/lib/components/datagrid/data_grid.a11y.js +255 -0
  17. package/lib/components/date_picker/date_picker.a11y.js +89 -0
  18. package/lib/components/delay_hide/delay_hide.a11y.js +111 -0
  19. package/lib/components/delay_render/delay_render.a11y.js +111 -0
  20. package/lib/components/empty_prompt/empty_prompt.a11y.js +72 -0
  21. package/lib/components/error_boundary/error_boundary.js +49 -29
  22. package/lib/components/page/page_side_bar/page_side_bar.js +4 -0
  23. package/lib/components/page/page_template.js +1 -15
  24. package/optimize/es/components/datagrid/data_grid.a11y.js +234 -0
  25. package/optimize/es/components/date_picker/date_picker.a11y.js +73 -0
  26. package/optimize/es/components/delay_hide/delay_hide.a11y.js +96 -0
  27. package/optimize/es/components/delay_render/delay_render.a11y.js +96 -0
  28. package/optimize/es/components/empty_prompt/empty_prompt.a11y.js +63 -0
  29. package/optimize/es/components/error_boundary/error_boundary.js +37 -26
  30. package/optimize/es/components/page/page_side_bar/page_side_bar.js +3 -0
  31. package/optimize/lib/components/datagrid/data_grid.a11y.js +248 -0
  32. package/optimize/lib/components/date_picker/date_picker.a11y.js +87 -0
  33. package/optimize/lib/components/delay_hide/delay_hide.a11y.js +111 -0
  34. package/optimize/lib/components/delay_render/delay_render.a11y.js +111 -0
  35. package/optimize/lib/components/empty_prompt/empty_prompt.a11y.js +72 -0
  36. package/optimize/lib/components/error_boundary/error_boundary.js +41 -28
  37. package/optimize/lib/components/page/page_side_bar/page_side_bar.js +4 -0
  38. package/package.json +11 -14
  39. package/src/components/basic_table/_basic_table.scss +1 -4
  40. package/src/components/button/button_empty/_button_empty.scss +2 -4
  41. package/src/components/button/button_group/_button_group.scss +1 -1
  42. package/src/components/button/button_group/_button_group_button.scss +3 -4
  43. package/src/components/button/button_icon/_button_icon.scss +0 -3
  44. package/src/components/collapsible_nav/_collapsible_nav.scss +1 -1
  45. package/src/components/collapsible_nav/collapsible_nav_group/_collapsible_nav_group.scss +1 -1
  46. package/src/components/color_picker/_color_picker.scss +3 -2
  47. package/src/components/color_picker/_hue.scss +7 -7
  48. package/src/components/color_picker/_saturation.scss +1 -1
  49. package/src/components/color_picker/color_palette_display/_mixins.scss +1 -1
  50. package/src/components/color_picker/color_stops/_color_stops.scss +2 -3
  51. package/src/components/combo_box/_combo_box.scss +7 -6
  52. package/src/components/combo_box/combo_box_input/_combo_box_input.scss +2 -1
  53. package/src/components/combo_box/combo_box_input/_combo_box_placeholder.scss +1 -1
  54. package/src/components/combo_box/combo_box_options_list/_combo_box_options_list.scss +2 -3
  55. package/src/components/control_bar/_variables.scss +0 -1
  56. package/src/components/datagrid/_data_grid_data_row.scss +4 -5
  57. package/src/components/datagrid/_mixins.scss +1 -1
  58. package/src/components/datagrid/body/_data_grid_footer_row.scss +2 -1
  59. package/src/components/datagrid/body/header/_data_grid_column_resizer.scss +3 -4
  60. package/src/components/datagrid/body/header/_data_grid_header_row.scss +1 -1
  61. package/src/components/datagrid/controls/_data_grid_column_sorting.scss +1 -2
  62. package/src/components/date_picker/_date_picker_range.scss +1 -1
  63. package/src/components/date_picker/super_date_picker/_super_date_picker.scss +1 -4
  64. package/src/components/date_picker/super_date_picker/quick_select_popover/_quick_select_popover.scss +1 -1
  65. package/src/components/drag_and_drop/_draggable.scss +3 -5
  66. package/src/components/drag_and_drop/_droppable.scss +1 -1
  67. package/src/components/empty_prompt/_empty_prompt.scss +1 -1
  68. package/src/components/filter_group/_filter_group.scss +2 -2
  69. package/src/components/filter_group/_filter_select_item.scss +0 -1
  70. package/src/components/form/checkbox/_checkbox.scss +5 -3
  71. package/src/components/form/described_form_group/_described_form_group.scss +0 -1
  72. package/src/components/form/field_password/_field_password.scss +1 -1
  73. package/src/components/form/field_search/_field_search.scss +1 -1
  74. package/src/components/form/file_picker/_file_picker.scss +1 -2
  75. package/src/components/form/form_control_layout/_form_control_layout.scss +6 -7
  76. package/src/components/form/form_control_layout/_form_control_layout_delimited.scss +4 -6
  77. package/src/components/form/form_row/_form_row.scss +3 -0
  78. package/src/components/form/radio/_radio.scss +5 -3
  79. package/src/components/form/select/_select.scss +1 -1
  80. package/src/components/form/switch/_switch.scss +3 -1
  81. package/src/components/header/_mixins.scss +1 -1
  82. package/src/components/header/header_section/_header_section_item.scss +4 -4
  83. package/src/components/header/header_section/_header_section_item_button.scss +0 -1
  84. package/src/components/key_pad_menu/_key_pad_menu_item.scss +2 -7
  85. package/src/components/markdown_editor/_markdown_editor_drop_zone.scss +4 -4
  86. package/src/components/markdown_editor/_markdown_editor_footer.scss +1 -1
  87. package/src/components/markdown_editor/_markdown_editor_text_area.scss +2 -3
  88. package/src/components/markdown_editor/_markdown_format.scss +4 -2
  89. package/src/components/notification/_notification_event.scss +2 -2
  90. package/src/components/page/page_content/_page_content_body.scss +0 -1
  91. package/src/components/page/page_content/_page_content_header_section.scss +0 -1
  92. package/src/components/page/page_side_bar/_page_side_bar.scss +0 -1
  93. package/src/components/panel/split_panel/_split_panel.scss +2 -2
  94. package/src/components/resizable_container/_resizable_button.scss +31 -31
  95. package/src/components/resizable_container/_resizable_collapse_button.scss +9 -9
  96. package/src/components/selectable/selectable_templates/_selectable_template_sitewide_option.scss +1 -1
  97. package/src/components/side_nav/_mixins.scss +1 -1
  98. package/src/components/side_nav/_side_nav.scss +2 -1
  99. package/src/components/side_nav/_side_nav_item.scss +2 -3
  100. package/src/components/steps/_steps.scss +2 -1
  101. package/src/components/suggest/_suggest_input.scss +1 -1
  102. package/src/components/suggest/_suggest_item.scss +4 -3
  103. package/src/components/table/_responsive.scss +5 -3
  104. package/src/components/table/_table.scss +2 -4
  105. package/src/components/table/mobile/_mobile.scss +0 -2
  106. package/src/components/tree_view/tree_view.scss +2 -2
  107. package/src/global_styling/mixins/_form.scss +7 -18
  108. package/src/global_styling/mixins/_header.scss +2 -2
  109. package/src/global_styling/mixins/_helpers.scss +1 -2
  110. package/src/global_styling/mixins/_icons.scss +1 -1
  111. package/src/global_styling/mixins/_range.scss +4 -8
  112. package/src/global_styling/mixins/_responsive.scss +3 -8
  113. package/src/global_styling/mixins/_shadow.scss +5 -9
  114. package/src/global_styling/mixins/_states.scss +2 -2
  115. package/src/global_styling/mixins/_typography.scss +16 -19
  116. package/src/global_styling/variables/_colors_vis.scss +1 -1
  117. package/src/global_styling/variables/_typography.scss +1 -3
  118. package/src/themes/amsterdam/_colors_dark.scss +2 -1
  119. package/src/themes/amsterdam/_colors_light.scss +2 -0
  120. package/src/themes/amsterdam/global_styling/mixins/_link.scss +1 -1
  121. package/src/themes/amsterdam/global_styling/mixins/_states.scss +0 -1
  122. package/src/themes/amsterdam/global_styling/mixins/_typography.scss +1 -2
  123. package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_days.scss +0 -1
  124. package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_month_year.scss +0 -1
  125. package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_times.scss +3 -4
  126. package/src/themes/amsterdam/global_styling/react_date_picker/_mixins.scss +0 -1
  127. package/src/themes/amsterdam/global_styling/variables/_typography.scss +1 -2
  128. package/src/themes/amsterdam/overrides/_color_stops.scss +4 -5
  129. package/src/themes/amsterdam/overrides/_combo_box.scss +3 -0
  130. package/src/themes/amsterdam/overrides/_form_control_layout.scss +3 -0
  131. package/src/themes/amsterdam/overrides/_form_control_layout_delimited.scss +5 -4
  132. package/src/themes/amsterdam/overrides/_header.scss +2 -2
  133. package/src/themes/amsterdam/overrides/_hue.scss +6 -6
  134. package/src/themes/amsterdam/overrides/_key_pad_menu.scss +2 -2
  135. package/src/themes/amsterdam/overrides/_steps.scss +1 -2
  136. package/src/themes/legacy/_colors_dark.scss +2 -1
  137. package/src/themes/legacy/_colors_light.scss +2 -0
  138. package/src/themes/legacy/reset/_reset.scss +8 -7
  139. package/test-env/components/datagrid/data_grid.a11y.js +248 -0
  140. package/test-env/components/date_picker/date_picker.a11y.js +87 -0
  141. package/test-env/components/delay_hide/delay_hide.a11y.js +111 -0
  142. package/test-env/components/delay_render/delay_render.a11y.js +111 -0
  143. package/test-env/components/empty_prompt/empty_prompt.a11y.js +72 -0
  144. package/test-env/components/error_boundary/error_boundary.js +48 -28
  145. package/test-env/components/page/page_side_bar/page_side_bar.js +4 -0
  146. package/test-env/components/page/page_template.js +1 -15
  147. package/scripts/postinstall.js +0 -9
@@ -1,10 +1,10 @@
1
1
  @mixin euiFocusRing($size: 'small', $amsterdamOnlyProp: null) {
2
2
  @if $size == 'large' {
3
3
  // It's always OK to use the focus animation. This will take precedence over times we turn it off individually like EuiButtonEmpty
4
- // sass-lint:disable-block no-important
4
+ // stylelint-disable-next-line declaration-no-important
5
5
  animation: $euiAnimSpeedSlow $euiAnimSlightResistance 1 normal forwards focusRingAnimateLarge !important;
6
6
  } @else {
7
- // sass-lint:disable-block no-important
7
+ // stylelint-disable-next-line declaration-no-important
8
8
  animation: $euiAnimSpeedSlow $euiAnimSlightResistance 1 normal forwards focusRingAnimate !important;
9
9
  }
10
10
  }
@@ -1,5 +1,5 @@
1
- // sass-lint:disable no-vendor-prefixes
2
- // sass-lint:disable no-important
1
+ // stylelint-disable property-no-vendor-prefix
2
+ // stylelint-disable declaration-no-important
3
3
 
4
4
  @function fontSizeToRemOrEm($size, $sizingMethod: 'rem') {
5
5
  @if ($sizingMethod == 'rem') {
@@ -130,16 +130,14 @@
130
130
  word-break: break-word;
131
131
  }
132
132
 
133
- // Text truncation
134
- //
135
- // Prevent text from wrapping onto multiple lines, and truncate with an
136
- // ellipsis.
137
- //
138
- // 1. Ensure that the node has a maximum width after which truncation can
139
- // occur.
140
-
133
+ /**
134
+ * Text truncation
135
+ *
136
+ * Prevent text from wrapping onto multiple lines, and truncate with an ellipsis.
137
+ *
138
+ * 1. Ensure that the node has a maximum width after which truncation can occur.
139
+ */
141
140
  @mixin euiTextTruncate {
142
- // sass-lint:disable-block no-important
143
141
  max-width: 100%; // 1
144
142
  overflow: hidden !important;
145
143
  text-overflow: ellipsis !important;
@@ -150,13 +148,13 @@
150
148
  font-feature-settings: $euiFontFeatureSettings, 'tnum' 1; // Fixed-width numbers for tabular data
151
149
  }
152
150
 
153
-
154
- // Text weight shifting
155
- //
156
- // When changing the font-weight based the state of the component
157
- // this mixin will ensure that the sizing is dependent on the boldest
158
- // weight so it doesn't shifter sibling content.
159
-
151
+ /**
152
+ * Text weight shifting
153
+ *
154
+ * When changing the font-weight based the state of the component
155
+ * this mixin will ensure that the sizing is dependent on the boldest
156
+ * weight so it doesn't shifter sibling content.
157
+ */
160
158
  @mixin euiTextShift($fontWeight: $euiFontWeightBold, $attr: 'data-text') {
161
159
  &::after {
162
160
  display: block;
@@ -167,4 +165,3 @@
167
165
  visibility: hidden;
168
166
  }
169
167
  }
170
-
@@ -1,4 +1,5 @@
1
1
  // Visualization colors
2
+ // stylelint-disable color-no-hex
2
3
 
3
4
  // Maps allow for easier JSON usage
4
5
  // Use map_merge($euiColorVisColors, $yourMap) to change individual colors after importing ths file
@@ -59,7 +60,6 @@ $euiColorVis7: map-get(map-get($euiPaletteColorBlind, 'euiColorVis7'), 'graphic'
59
60
  $euiColorVis8: map-get(map-get($euiPaletteColorBlind, 'euiColorVis8'), 'graphic') !default;
60
61
  $euiColorVis9: map-get(map-get($euiPaletteColorBlind, 'euiColorVis9'), 'graphic') !default;
61
62
 
62
- // sass-lint:disable-block variable-name-format
63
63
  $euiColorVis0_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis0'), 'behindText') !default;
64
64
  $euiColorVis1_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis1'), 'behindText') !default;
65
65
  $euiColorVis2_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis2'), 'behindText') !default;
@@ -20,7 +20,6 @@ $euiFontSizeXXL: $euiFontSize * nth($euiTextScale, 1) !default; // 36px
20
20
  $euiLineHeight: 1.5 !default;
21
21
  $euiBodyLineHeight: 1 !default;
22
22
 
23
-
24
23
  // Normally functions are imported before variables in `_index.scss` files
25
24
  // But because they need to consume some typography variables they need to live here
26
25
  @function convertToRem($size) {
@@ -32,10 +31,9 @@ $euiBodyLineHeight: 1 !default;
32
31
  // If our base font size (euiFontSize) is 16, our baseline is 8 (16*1.5 / 3). To ensure the
33
32
  // text stays on the baseline, we pass a multiplier to calculate a line-height in rems.
34
33
  @function lineHeightFromBaseline($multiplier: 3) {
35
- @return convertToRem(($euiFontSize/2)*$multiplier);
34
+ @return convertToRem(($euiFontSize / 2) * $multiplier);
36
35
  }
37
36
 
38
-
39
37
  // Titles map
40
38
  // Lists all the properties per EuiTitle size that then gets looped through to create the selectors.
41
39
  // The map allows for tokenization and easier customization per theme, otherwise you'd have to override the selectors themselves
@@ -1,3 +1,5 @@
1
+ // stylelint-disable color-no-hex
2
+
1
3
  // This extra import allows any variables that are created via functions to work when loaded into JS
2
4
  @import '../../global_styling/functions/index';
3
5
 
@@ -45,4 +47,3 @@ $euiLinkColor: $euiColorPrimaryText !default;
45
47
  // Charts
46
48
  $euiColorChartLines: $euiColorLightShade !default;
47
49
  $euiColorChartBand: tint($euiColorLightestShade, 2.5%) !default;
48
-
@@ -1,3 +1,5 @@
1
+ // stylelint-disable color-no-hex
2
+
1
3
  // This extra import allows any variables that are created via functions to work when loaded into JS
2
4
  @import '../../global_styling/functions/index';
3
5
 
@@ -18,6 +18,6 @@
18
18
 
19
19
  @mixin euiLinkFocus {
20
20
  text-decoration: underline;
21
- // sass-lint:disable-block no-misspelled-properties no-important
21
+ // stylelint-disable-next-line declaration-no-important
22
22
  text-decoration-thickness: $euiBorderWidthThick !important;
23
23
  }
@@ -63,4 +63,3 @@
63
63
  @include euiDisabledState($disabledColor);
64
64
  }
65
65
  }
66
-
@@ -1,7 +1,6 @@
1
1
  // Font sizing extends, using rem mixin
2
2
  // All line-heights are aligned to baseline grid
3
- // sass-lint:disable no-vendor-prefixes
4
-
3
+ // stylelint-disable property-no-vendor-prefix
5
4
 
6
5
  @function fontSizeToRemOrEm($size, $sizingMethod: 'rem') {
7
6
  @if ($sizingMethod == 'rem') {
@@ -82,7 +82,6 @@
82
82
  &--in-range#{&}--disabled:not(.react-datepicker__day--selected):hover {
83
83
  $backgroundColor: transparentize($euiColorPrimary, $euiButtonDefaultTransparency);
84
84
 
85
- // sass-lint:disable-block indentation
86
85
  box-shadow: -2px 0 $backgroundColor,
87
86
  2px 0 $backgroundColor;
88
87
  border-radius: 0;
@@ -23,7 +23,6 @@
23
23
  .react-datepicker__header__dropdown {
24
24
  padding: $euiDatePickerGap * 2;
25
25
  display: flex;
26
- // sass-lint:disable-block no-misspelled-properties
27
26
  gap: $euiDatePickerGap;
28
27
  position: absolute;
29
28
  top: 0;
@@ -43,7 +43,7 @@
43
43
  @include euiYScroll;
44
44
  padding: $euiSizeXS $euiSizeM;
45
45
  // Set the min-height with the following, but it should stretch to fit if the container is larger
46
- height: 100px !important; // sass-lint:disable-line no-important
46
+ height: 100px !important;
47
47
  display: flex;
48
48
  flex-direction: column;
49
49
  flex-grow: 1;
@@ -54,7 +54,6 @@
54
54
  // Mainly a copy/paste of .euiEmptyButton
55
55
  .react-datepicker__time-list-item {
56
56
  @include euiButton;
57
- // sass-lint:disable-block no-important
58
57
  transform: none !important; /* 1 */
59
58
  animation: none !important; /* 1 */
60
59
  transition-timing-function: ease-in; /* 2 */
@@ -93,7 +92,7 @@
93
92
 
94
93
  // When in time only mode we make the dropdown look more like the combo box styling.
95
94
  .react-datepicker--time-only {
96
- padding: 0 !important; // sass-lint:disable-line no-important
95
+ padding: 0 !important;
97
96
 
98
97
  .react-datepicker__time-container {
99
98
  background-color: transparent;
@@ -101,7 +100,7 @@
101
100
  }
102
101
 
103
102
  .react-datepicker__time-list {
104
- height: 204px !important; // sass-lint:disable-line no-important
103
+ height: 204px !important;
105
104
  }
106
105
 
107
106
  .react-datepicker__time-list-item {
@@ -1,6 +1,5 @@
1
1
  // Because we don't have control over react-datepicker's dom we use SVG URIs for the navigation arrows.
2
2
  // There is one for light and dark.
3
- // sass-lint:disable-block url-quotes
4
3
  @mixin datePickerCaret {
5
4
  background-position: center;
6
5
  @if (lightness($euiColorEmptyShade) > 50) {
@@ -19,7 +19,6 @@ $euiBodyLineHeight: 1.142857143; // 16px from a 14px base font size to ensure it
19
19
  $euiCodeFontWeightRegular: 400;
20
20
  $euiCodeFontWeightBold: 700;
21
21
 
22
-
23
22
  // Normally functions are imported before variables in `_index.scss` files
24
23
  // But because they need to consume some typography variables they need to live here
25
24
  @function convertToRem($size) {
@@ -28,7 +27,7 @@ $euiCodeFontWeightBold: 700;
28
27
 
29
28
  // Use 8px increments for base gridline
30
29
  @function lineHeightFromBaseline($multiplier: 3) {
31
- @return convertToRem(($euiSize/2)*$multiplier);
30
+ @return convertToRem(($euiSize / 2) * $multiplier);
32
31
  }
33
32
 
34
33
  $euiTitles: (
@@ -9,7 +9,6 @@
9
9
  }
10
10
 
11
11
  .euiColorStopThumb.euiRangeThumb:not(:disabled) {
12
- // sass-lint:disable-block no-important no-color-literals
13
12
  @include euiRangeThumbBorder;
14
13
  @include euiRangeThumbBoxShadow;;
15
14
 
@@ -19,7 +18,7 @@
19
18
  }
20
19
 
21
20
  // in Chrome/FF/Edge we don't want to focus on click
22
- &:focus:not(:focus-visible) {
21
+ &:focus:not(:focus-visible) {
23
22
  @include euiRangeThumbBoxShadow;
24
23
  outline: none;
25
24
  }
@@ -37,9 +36,9 @@
37
36
  outline: none;
38
37
 
39
38
  .euiRangeTrack::after {
40
- // sass-lint:disable-block no-color-literals
41
- box-shadow: 0 0 0 1px rgba($euiColorEmptyShade, .8),
42
- 0 0 0 3px $euiFocusRingColor;
39
+ box-shadow:
40
+ 0 0 0 1px rgba($euiColorEmptyShade, .8),
41
+ 0 0 0 3px $euiFocusRingColor;
43
42
  }
44
43
  }
45
44
 
@@ -1,3 +1,6 @@
1
+ // TODO: Address nesting during Emotion conversion, if possible
2
+ // stylelint-disable max-nesting-depth
3
+
1
4
  .euiComboBox {
2
5
  // Round the left border when we append a label
3
6
  &--appended {
@@ -1,3 +1,6 @@
1
+ // TODO: Address nesting during Emotion conversion, if possible
2
+ // stylelint-disable max-nesting-depth
3
+
1
4
  .euiFormControlLayout--group {
2
5
  border-radius: $euiFormControlBorderRadius;
3
6
  background-color: $euiFormInputGroupLabelBackground;
@@ -1,3 +1,6 @@
1
+ // TODO: Address nesting during Emotion conversion, if possible
2
+ // stylelint-disable max-nesting-depth
3
+
1
4
  .euiFormControlLayoutDelimited {
2
5
  border-radius: $euiFormControlBorderRadius;
3
6
 
@@ -12,8 +15,7 @@
12
15
  overflow: hidden;
13
16
  }
14
17
 
15
- .euiFormControlLayout__prepend +
16
- .euiFormControlLayout__childrenWrapper {
18
+ .euiFormControlLayout__prepend + .euiFormControlLayout__childrenWrapper {
17
19
  &:last-child {
18
20
  border-radius: 0 $euiFormControlBorderRadius $euiFormControlBorderRadius 0;
19
21
  }
@@ -31,8 +33,7 @@
31
33
  overflow: hidden;
32
34
  }
33
35
 
34
- .euiFormControlLayout__prepend +
35
- .euiFormControlLayout__childrenWrapper {
36
+ .euiFormControlLayout__prepend + .euiFormControlLayout__childrenWrapper {
36
37
  &:last-child {
37
38
  border-radius: 0 $euiFormControlCompressedBorderRadius $euiFormControlCompressedBorderRadius 0;
38
39
  }
@@ -5,8 +5,8 @@
5
5
  }
6
6
 
7
7
  // Remove borders without deleting the prop just yet
8
- .euiHeaderSectionItem:after {
9
- display: none !important; // sass-lint:disable-line no-important
8
+ .euiHeaderSectionItem::after {
9
+ display: none !important; // stylelint-disable-line declaration-no-important
10
10
  }
11
11
 
12
12
  .euiHeaderLogo {
@@ -11,10 +11,10 @@
11
11
 
12
12
  &__range {
13
13
  @include euiRangeThumbPerBrowser {
14
- // sass-lint:disable-block no-color-literals
15
14
  border: 3px solid $euiRangeThumbBorderColor;
16
- box-shadow: 0 2px 2px -1px rgba($euiShadowColor, .2),
17
- 0 1px 5px -2px rgba($euiShadowColor, .2);
15
+ box-shadow:
16
+ 0 2px 2px -1px rgba($euiShadowColor, .2),
17
+ 0 1px 5px -2px rgba($euiShadowColor, .2);
18
18
  background-color: inherit;
19
19
  }
20
20
 
@@ -31,9 +31,9 @@
31
31
 
32
32
  &:focus:not(:focus-visible) {
33
33
  @include euiRangeThumbPerBrowser {
34
- // sass-lint:disable-block no-color-literals
35
- box-shadow: 0 2px 2px -1px rgba($euiShadowColor, .2),
36
- 0 1px 5px -2px rgba($euiShadowColor, .2);
34
+ box-shadow:
35
+ 0 2px 2px -1px rgba($euiShadowColor, .2),
36
+ 0 1px 5px -2px rgba($euiShadowColor, .2);
37
37
  }
38
38
  }
39
39
 
@@ -1,12 +1,12 @@
1
1
  .euiKeyPadMenuItem {
2
- border: none !important; // sass-lint:disable-line no-important
2
+ border: none !important; // stylelint-disable-line declaration-no-important
3
3
  box-shadow: none;
4
4
 
5
5
  // Focus and Hover states (when not disabled)
6
6
  &:not(.euiKeyPadMenuItem-isDisabled) {
7
7
  &:hover,
8
8
  &:focus:hover,
9
- &:focus-within {
9
+ &:focus-within {
10
10
  @include euiBottomShadowSmall;
11
11
  }
12
12
 
@@ -34,7 +34,7 @@
34
34
  &--#{$name} {
35
35
  background-color: $color;
36
36
  color: chooseLightOrDarkText($color, $euiColorGhost, $euiColorInk);
37
- outline-color: chooseLightOrDarkText($color, $color, $euiColorInk) !important; // sass-lint:disable-line no-important
37
+ outline-color: chooseLightOrDarkText($color, $color, $euiColorInk) !important; // stylelint-disable-line declaration-no-important
38
38
  }
39
39
  }
40
40
 
@@ -99,4 +99,3 @@
99
99
  .euiStepHorizontal:focus:not(.euiStepHorizontal-isDisabled) .euiStepHorizontal__number:not(:focus-visible) {
100
100
  outline: $euiFocusRingSize solid $euiColorPrimary;
101
101
  }
102
-
@@ -1,3 +1,5 @@
1
+ // stylelint-disable color-no-hex
2
+
1
3
  // This extra import allows any variables that are created via functions to work when loaded into JS
2
4
  @import '../../global_styling/functions/index';
3
5
 
@@ -45,4 +47,3 @@ $euiLinkColor: $euiColorPrimaryText !default;
45
47
  // Charts
46
48
  $euiColorChartLines: $euiColorLightShade !default;
47
49
  $euiColorChartBand: tint($euiColorLightestShade, 2.5%) !default;
48
-
@@ -1,3 +1,5 @@
1
+ // stylelint-disable color-no-hex
2
+
1
3
  // This extra import allows any variables that are created via functions to work when loaded into JS
2
4
  @import '../../global_styling/functions/index';
3
5
 
@@ -1,12 +1,12 @@
1
1
  // This file allows multi-line selectors to make it more readable
2
- // sass-lint:disable single-line-per-selector
2
+ // stylelint-disable selector-list-comma-newline-after
3
3
 
4
4
  /**
5
5
  * Adapted from Eric Meyer's reset (http://meyerweb.com/eric/tools/css/reset/, v2.0 | 20110126).
6
6
  *
7
7
  */
8
8
 
9
- *, *:before, *:after {
9
+ *, *::before, *::after {
10
10
  box-sizing: border-box;
11
11
  }
12
12
 
@@ -72,7 +72,7 @@ body {
72
72
  *:focus {
73
73
  outline: none;
74
74
 
75
- // sass-lint:disable no-vendor-prefixes
75
+ // stylelint-disable selector-no-vendor-prefix
76
76
  // Disables border that shows up when tabbing in Firefox.
77
77
  &::-moz-focus-inner {
78
78
  border: none;
@@ -133,10 +133,10 @@ blockquote, q {
133
133
  quotes: none;
134
134
  }
135
135
 
136
- blockquote:before, blockquote:after,
137
- q:before, q:after {
136
+ blockquote::before, blockquote::after,
137
+ q::before, q::after {
138
138
  content: '';
139
- content: none; // sass-lint:disable-line no-duplicate-properties
139
+ content: none;
140
140
  }
141
141
 
142
142
  table {
@@ -155,6 +155,7 @@ fieldset {
155
155
  /* Chrome has an issue around RTL languages in SVGs when letter-spacing is negative
156
156
  * https://bugs.chromium.org/p/chromium/issues/detail?id=966480
157
157
  */
158
+
158
159
  svg text {
159
- letter-spacing: normal !important; // sass-lint:disable-line no-important
160
+ letter-spacing: normal !important; // stylelint-disable-line declaration-no-important
160
161
  }