@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
@@ -18,7 +18,7 @@
18
18
  .euiFieldText.euiDatePicker {
19
19
  height: $euiFormControlLayoutGroupInputHeight;
20
20
  // including all states
21
- box-shadow: none !important; // sass-lint:disable-line no-important
21
+ box-shadow: none !important; // stylelint-disable-line declaration-no-important
22
22
  text-align: center;
23
23
  }
24
24
 
@@ -1,5 +1,3 @@
1
- // sass-lint:disable-block function-name-format
2
-
3
1
  .euiSuperDatePicker__flexWrapper {
4
2
  max-width: 100%;
5
3
  // Set a sensible min-width for when width is auto
@@ -34,10 +32,9 @@
34
32
  width: $euiSuperDatePickerWidth;
35
33
  }
36
34
 
37
-
38
35
  .euiSuperDatePicker {
39
- // sass-lint:disable-block no-important
40
36
  // Allow it to always grow to fit the container since the default form max width is too small
37
+ // stylelint-disable-next-line declaration-no-important
41
38
  max-width: 100% !important;
42
39
 
43
40
  > .euiFormControlLayout__childrenWrapper {
@@ -11,9 +11,9 @@
11
11
  margin: $euiSizeS 0 0;
12
12
  }
13
13
 
14
- // sass-lint:disable no-important
15
14
  .euiQuickSelectPopover__buttonText {
16
15
  // Override specificity from universal and sibling selectors
16
+ // stylelint-disable-next-line declaration-no-important
17
17
  margin-right: $euiSizeXS !important;
18
18
  }
19
19
 
@@ -1,19 +1,17 @@
1
- // sass-lint:disable no-empty-rulesets
2
-
3
1
  .euiDraggable {
4
2
  &.euiDraggable--isDragging {
5
3
  // Overriding inline styles on JS-inserted HTML elements
6
- z-index: $euiZLevel9 !important; // sass-lint:disable-line no-important
4
+ z-index: $euiZLevel9 !important; // stylelint-disable-line declaration-no-important
7
5
  }
8
6
 
9
7
  &.euiDraggable--hasClone:not(.euiDraggable--isDragging) {
10
8
  // Overriding inline styles on JS-inserted HTML elements
11
- transform: none !important; // sass-lint:disable-line no-important
9
+ transform: none !important; // stylelint-disable-line declaration-no-important
12
10
  }
13
11
 
14
12
  &.euiDraggable--withoutDropAnimation {
15
13
  // Overriding inline styles on JS-inserted HTML elements
16
- transition-duration: .001s !important; // sass-lint:disable-line no-important
14
+ transition-duration: .001s !important; // stylelint-disable-line declaration-no-important
17
15
  }
18
16
 
19
17
  &:focus > .euiDraggable__item,
@@ -13,7 +13,7 @@
13
13
  .euiDroppable__placeholder {
14
14
  &.euiDroppable__placeholder--isHidden {
15
15
  // Overriding inline styles on JS-inserted HTML elements
16
- display: none !important; // sass-lint:disable-line no-important
16
+ display: none !important; // stylelint-disable-line declaration-no-important
17
17
  }
18
18
  }
19
19
  }
@@ -121,7 +121,7 @@ $euiEmptyPromptContentMaxWidth: 36em;
121
121
 
122
122
  &.euiEmptyPrompt--horizontal {
123
123
  .euiEmptyPrompt__main {
124
- gap: $amount; // sass-lint:disable-line no-misspelled-properties
124
+ gap: $amount;
125
125
  }
126
126
  }
127
127
  }
@@ -10,7 +10,7 @@
10
10
  min-width: $euiSize * 3;
11
11
  }
12
12
 
13
- > .euiFilterButton--noGrow {
13
+ > .euiFilterButton--noGrow {
14
14
  flex-grow: 0;
15
15
  }
16
16
 
@@ -56,7 +56,7 @@
56
56
  display: flex;
57
57
 
58
58
  .euiFilterButton {
59
- // sass-lint:disable-block no-important
59
+ // stylelint-disable-next-line declaration-no-important
60
60
  flex-grow: 1 !important;
61
61
  }
62
62
  }
@@ -22,7 +22,6 @@
22
22
  @include euiTextTruncate;
23
23
  }
24
24
 
25
-
26
25
  .euiFilterSelect__items {
27
26
  @include euiScrollBar;
28
27
 
@@ -1,3 +1,6 @@
1
+ // TODO: Address nesting during Emotion conversion, if possible
2
+ // stylelint-disable max-nesting-depth
3
+
1
4
  /**
2
5
  * 1. Float above the visual radio and match its dimension, so that when users try to click it
3
6
  * they actually click this input.
@@ -48,12 +51,11 @@
48
51
  }
49
52
 
50
53
  &[disabled] {
51
- // sass-lint:disable-block no-important
52
- cursor: not-allowed !important;
54
+ cursor: not-allowed !important; // stylelint-disable-line declaration-no-important
53
55
 
54
56
  ~ .euiCheckbox__label {
55
57
  color: $euiFormControlDisabledColor;
56
- cursor: not-allowed !important;
58
+ cursor: not-allowed !important; // stylelint-disable-line declaration-no-important
57
59
  }
58
60
 
59
61
  + .euiCheckbox__square {
@@ -30,6 +30,5 @@
30
30
  }
31
31
 
32
32
  .euiDescribedFormGroup__descriptionColumn {
33
- // sass-lint:disable-block function-name-format
34
33
  min-width: MIN(20rem, 50%);
35
34
  }
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
 
10
- // sass-lint:disable-block no-vendor-prefixes
10
+ // stylelint-disable selector-no-vendor-prefix
11
11
  // Only remove Edge's internal reveal button if we're providing a custom one
12
12
  .euiFieldPassword--withToggle::-ms-reveal {
13
13
  display: none;
@@ -2,13 +2,13 @@
2
2
  * 1. Fix for Safari to ensure that it renders like a normal text input
3
3
  * and doesn't add extra spacing around text
4
4
  */
5
+ // stylelint-disable property-no-vendor-prefix, selector-no-vendor-prefix
5
6
 
6
7
  .euiFieldSearch {
7
8
  @include euiFormControlStyle;
8
9
  @include euiFormControlWithIcon($isIconOptional: false);
9
10
  @include euiFormControlIsLoading;
10
11
 
11
- // sass-lint:disable-block no-vendor-prefixes
12
12
  -webkit-appearance: textfield; /* 1 */
13
13
 
14
14
  &::-webkit-search-decoration,
@@ -77,7 +77,6 @@
77
77
  pointer-events: none; /* 1 */
78
78
  border-radius: $euiFormControlBorderRadius;
79
79
 
80
- // sass-lint:disable-block indentation
81
80
  transition:
82
81
  box-shadow $euiAnimSpeedFast ease-in,
83
82
  background-color $euiAnimSpeedFast ease-in,
@@ -178,7 +177,7 @@
178
177
 
179
178
  // Large styles only
180
179
  .euiFilePicker--large {
181
- // sass-lint:disable-block nesting-depth
180
+ // stylelint-disable max-nesting-depth
182
181
  // Hover and focus
183
182
  .euiFilePicker__input:hover:not(:disabled),
184
183
  .euiFilePicker__input:focus {
@@ -1,3 +1,6 @@
1
+ // TODO: Address nesting during Emotion conversion, if possible
2
+ // stylelint-disable max-nesting-depth
3
+
1
4
  .euiFormControlLayout {
2
5
  // Let the height expand as needed
3
6
  @include euiFormControlSize($includeAlternates: true);
@@ -71,16 +74,15 @@
71
74
  background-color: $euiFormInputGroupLabelBackground;
72
75
  }
73
76
 
74
-
75
77
  &.euiButtonIcon,
76
78
  &.euiButtonEmpty,
77
79
  .euiButtonIcon,
78
80
  .euiButtonEmpty {
79
- transform: none !important;
81
+ transform: none !important; // stylelint-disable-line declaration-no-important
80
82
 
81
83
  // Undo sizing from icons inside buttons
82
84
  .euiIcon {
83
- background: none !important;
85
+ background: none !important; // stylelint-disable-line declaration-no-important
84
86
  padding: 0;
85
87
  width: $euiSize;
86
88
  }
@@ -115,7 +117,7 @@
115
117
  max-width: 50%; // Make sure max-width only applies to the outer most append/prepend element
116
118
  }
117
119
 
118
- // sass-lint:disable-block no-important
120
+ // stylelint-disable declaration-no-important
119
121
  // This is the only way to target specific components to override styling
120
122
 
121
123
  // TEXT
@@ -141,7 +143,6 @@
141
143
  }
142
144
  }
143
145
 
144
- //
145
146
  // BORDERS on buttons only
146
147
 
147
148
  .euiButtonEmpty {
@@ -156,7 +157,6 @@
156
157
  border-left: $euiFormInputGroupBorder;
157
158
  }
158
159
 
159
- //
160
160
  // Compressed alterations
161
161
 
162
162
  &.euiFormControlLayout--compressed {
@@ -184,7 +184,6 @@
184
184
  }
185
185
  }
186
186
 
187
- //
188
187
  // ReadOnly alterations
189
188
  &.euiFormControlLayout--readOnly {
190
189
  cursor: default;
@@ -22,6 +22,7 @@
22
22
 
23
23
  .euiFormControlLayoutDelimited__input {
24
24
  height: 100%;
25
+ max-width: none;
25
26
  padding-left: $euiFormControlCompressedPadding;
26
27
  padding-right: $euiFormControlCompressedPadding;
27
28
  }
@@ -72,20 +73,17 @@
72
73
  }
73
74
 
74
75
  .euiFormControlLayoutDelimited__input {
75
- // sass-lint:disable-block no-important
76
+ // stylelint-disable declaration-no-important
76
77
  box-shadow: none !important;
77
78
  border-radius: 0 !important;
79
+ // stylelint-enable declaration-no-important
78
80
  text-align: center;
79
81
  height: 100%;
80
82
  min-width: 0; // Fixes FF
81
-
82
- .euiFormControlLayoutDelimited[class*='--compressed'] & {
83
- max-width: none;
84
- }
85
83
  }
86
84
 
87
85
  .euiFormControlLayoutDelimited__delimeter {
88
- // sass-lint:disable-block no-important
86
+ // stylelint-disable-next-line declaration-no-important
89
87
  line-height: 1 !important; // Override EuiText line-height
90
88
  flex: 0 0 auto;
91
89
  padding-left: $euiFormControlPadding / 2;
@@ -61,6 +61,8 @@
61
61
  margin-top: $euiSizeM; // More spacing since we reduced the height to match that of the switch
62
62
  }
63
63
 
64
+ // TODO: Address nesting during Emotion conversion, if possible
65
+ // stylelint-disable max-nesting-depth
64
66
  &.euiFormRow--hasSwitch {
65
67
  .euiFormRow__labelWrapper {
66
68
  line-height: $euiSwitchHeight - 1px; // The 1px less helps the alignment of the text baseline
@@ -80,6 +82,7 @@
80
82
  margin-top: $euiSizeM; // More spacing since we reduced the height to match that of the switch
81
83
  }
82
84
  }
85
+ // stylelint-enable max-nesting-depth
83
86
  }
84
87
 
85
88
  .euiFormRow__fieldWrapperDisplayOnly {
@@ -1,3 +1,6 @@
1
+ // TODO: Address nesting during Emotion conversion, if possible
2
+ // stylelint-disable max-nesting-depth
3
+
1
4
  /**
2
5
  * 1. Float above the visual radio and match its dimension, so that when users try to click it
3
6
  * they actually click this input.
@@ -43,12 +46,11 @@
43
46
  }
44
47
 
45
48
  &[disabled] {
46
- //sass-lint:disable no-important
47
- cursor: not-allowed !important;
49
+ cursor: not-allowed !important; // stylelint-disable-line declaration-no-important
48
50
 
49
51
  ~ .euiRadio__label {
50
52
  color: $euiFormControlDisabledColor;
51
- cursor: not-allowed !important;
53
+ cursor: not-allowed !important; // stylelint-disable-line declaration-no-important
52
54
  }
53
55
 
54
56
  + .euiRadio__circle {
@@ -25,7 +25,7 @@
25
25
  }
26
26
 
27
27
  // Turn off linter for some MS specific bits.
28
- // sass-lint:disable no-vendor-prefixes
28
+ // stylelint-disable selector-no-vendor-prefix
29
29
  &::-ms-expand {
30
30
  display: none;
31
31
  }
@@ -1,3 +1,6 @@
1
+ // TODO: Address nesting during Emotion conversion, if possible
2
+ // stylelint-disable max-nesting-depth
3
+
1
4
  .euiSwitch {
2
5
  position: relative;
3
6
  display: inline-flex;
@@ -181,7 +184,6 @@
181
184
  // Compressed and mini switches have some style overlap
182
185
  &.euiSwitch--compressed,
183
186
  &.euiSwitch--mini {
184
-
185
187
  .euiSwitch__button[aria-checked='false'] {
186
188
  .euiSwitch__thumb {
187
189
  left: 1px;
@@ -13,7 +13,7 @@
13
13
  }
14
14
 
15
15
  .euiHeaderSectionItem {
16
- &:after {
16
+ &::after {
17
17
  background: lightOrDarkTheme($euiColorDarkShade, $euiColorLightestShade);
18
18
  }
19
19
  }
@@ -5,7 +5,7 @@
5
5
  display: flex;
6
6
  align-items: center;
7
7
 
8
- &:after {
8
+ &::after {
9
9
  position: absolute;
10
10
  content: '';
11
11
  top: $euiSize;
@@ -16,14 +16,14 @@
16
16
  }
17
17
 
18
18
  .euiHeaderSectionItem--borderLeft {
19
- &:after {
19
+ &::after {
20
20
  left: 0;
21
21
  width: 1px;
22
22
  }
23
23
  }
24
24
 
25
25
  .euiHeaderSectionItem--borderRight {
26
- &:after {
26
+ &::after {
27
27
  width: 1px;
28
28
  left: auto;
29
29
  right: 0;
@@ -37,7 +37,7 @@
37
37
 
38
38
  .euiHeaderSectionItem--borderLeft,
39
39
  .euiHeaderSectionItem--borderRight {
40
- &:after {
40
+ &::after {
41
41
  display: none;
42
42
  }
43
43
  }
@@ -22,7 +22,6 @@
22
22
  }
23
23
  }
24
24
 
25
-
26
25
  .euiHeaderSectionItemButton__content {
27
26
  // This element is a span and we're changing the display because inline elements can’t take a transform
28
27
  display: inline-block;
@@ -4,8 +4,6 @@
4
4
  */
5
5
  .euiKeyPadMenuItem {
6
6
  @include euiFont; /* 1 */
7
- // Disable indentation for transition legibility
8
- // sass-lint:disable-block indentation
9
7
  display: block;
10
8
  padding: $euiSizeXS;
11
9
  height: $euiKeyPadMenuSize;
@@ -15,7 +13,6 @@
15
13
  border-radius: $euiBorderRadius;
16
14
  color: $euiTextColor; // Override possible link color
17
15
 
18
- // sass-lint:disable-block mixins-before-declarations
19
16
  @include euiCanAnimate {
20
17
  transition:
21
18
  background-color $euiAnimSpeedFast ease-in,
@@ -32,8 +29,6 @@
32
29
  @include euiSlightShadow;
33
30
  border-color: $euiBorderColor;
34
31
 
35
- // sass-lint:disable-block mixins-before-declarations
36
- // sass-lint:disable-block nesting-depth
37
32
  @include euiCanAnimate {
38
33
  .euiKeyPadMenuItem__icon {
39
34
  transform: translateY(0);
@@ -50,10 +45,10 @@
50
45
  &.euiKeyPadMenuItem-isDisabled {
51
46
  @include euiDisabledState;
52
47
 
53
- .euiKeyPadMenuItem__icon {
48
+ .euiKeyPadMenuItem__icon {
54
49
  filter: grayscale(100%);
55
50
 
56
- svg * { // sass-lint:disable-line nesting-depth
51
+ svg * { // stylelint-disable-line max-nesting-depth
57
52
  fill: $euiButtonColorDisabledText;
58
53
  }
59
54
  }
@@ -27,13 +27,13 @@
27
27
  .euiMarkdownEditorTextArea,
28
28
  .euiMarkdownEditorTextArea:focus,
29
29
  .euiMarkdownEditor:focus-within .euiMarkdownEditorTextArea {
30
- // sass-lint:disable-block no-important
30
+ // stylelint-disable-next-line declaration-no-important
31
31
  background-color: transparentize($euiColorPrimary, .9) !important;
32
32
  }
33
33
 
34
34
  .euiMarkdownEditorTextArea,
35
35
  .euiMarkdownEditorTextArea:focus {
36
- // sass-lint:disable-block no-important
36
+ // stylelint-disable-next-line declaration-no-important
37
37
  background-image: euiFormControlGradient($euiColorPrimary) !important;
38
38
  }
39
39
  }
@@ -43,7 +43,7 @@
43
43
  .euiMarkdownEditorTextArea,
44
44
  .euiMarkdownEditorTextArea:focus,
45
45
  .euiMarkdownEditor:focus-within .euiMarkdownEditorTextArea {
46
- // sass-lint:disable-block no-important
46
+ // stylelint-disable-next-line declaration-no-important
47
47
  background-color: transparentize($euiColorDanger, .9) !important;
48
48
  }
49
49
  }
@@ -51,7 +51,7 @@
51
51
  &--hasError {
52
52
  .euiMarkdownEditorTextArea,
53
53
  .euiMarkdownEditorTextArea:focus {
54
- // sass-lint:disable-block no-important
54
+ // stylelint-disable-next-line declaration-no-important
55
55
  background-image: euiFormControlGradient($euiColorDanger) !important;
56
56
  }
57
57
  }
@@ -21,7 +21,7 @@
21
21
  }
22
22
 
23
23
  // overrides button empty styles so it can match the button icon
24
- // So when we have an error this button appears smoothly
24
+ // So when we have an error this button appears smoothly
25
25
  .euiMarkdownEditorFooter__uploadError {
26
26
  position: relative;
27
27
  left: -1px;
@@ -16,7 +16,6 @@
16
16
  // Removes default firefox margin
17
17
  margin: 0;
18
18
 
19
- // sass-lint:disable-block indentation
20
19
  transition:
21
20
  box-shadow $euiAnimSpeedFast ease-in,
22
21
  background-image $euiAnimSpeedFast ease-in,
@@ -26,7 +25,7 @@
26
25
  &:focus,
27
26
  // preventing the text area of loosing focus when clicking on an action button
28
27
  // from the toolbar
29
- .euiMarkdownEditor:focus-within & {
28
+ .euiMarkdownEditor:focus-within & {
30
29
  background-color: tintOrShade($euiColorEmptyShade, 0%, 40%);
31
30
  background-image: euiFormControlGradient();
32
31
  background-size: 100% 100%;
@@ -41,4 +40,4 @@
41
40
  .euiMarkdownEditor:focus-within & {
42
41
  background: none;
43
42
  }
44
- }
43
+ }
@@ -34,6 +34,7 @@
34
34
  .euiMarkdownFormat {
35
35
  $euiMarkdownAlphaShade: rgba($euiColorFullShade, .15);
36
36
 
37
+ // stylelint-disable indentation
37
38
  $euiMarkdownBorderColors: (
38
39
  default: $euiMarkdownAlphaShade,
39
40
  subdued: $euiTextSubduedColor,
@@ -45,6 +46,7 @@
45
46
  inherit: currentColor,
46
47
  custom: currentColor,
47
48
  );
49
+ // stylelint-enable indentation
48
50
 
49
51
  // We're adjusting the borders of the elements by passing a color defined in $euiMarkdownBorderColors.
50
52
  // For the `custom` and `inherit` colors we're assigning the `currentColor` so we can get the current or computed value of the `color` property
@@ -59,12 +61,12 @@
59
61
  }
60
62
 
61
63
  .euiCheckbox {
62
- // sass-lint:disable-block no-important
64
+ // stylelint-disable-next-line declaration-no-important
63
65
  margin-bottom: 0 !important;
64
66
  }
65
67
 
66
68
  // We're adjusting the position of the checkboxes so that when the text size is `relative` the checkboxes get better positioned
67
- .euiCheckbox .euiCheckbox__input + .euiCheckbox__square {
69
+ .euiCheckbox .euiCheckbox__input + .euiCheckbox__square {
68
70
  top: 50%;
69
71
  transform: translateY(-50%);
70
72
  }
@@ -22,7 +22,7 @@
22
22
  }
23
23
 
24
24
  &--isRead {
25
- color: $euiColorDarkShade !important; // sass-lint:disable-line no-important
25
+ color: $euiColorDarkShade !important; // stylelint-disable-line declaration-no-important
26
26
  }
27
27
  }
28
28
 
@@ -37,4 +37,4 @@
37
37
  margin-top: $euiSizeS;
38
38
  margin-right: $euiSizeM;
39
39
  }
40
- }
40
+ }
@@ -17,4 +17,3 @@
17
17
  padding: $amount;
18
18
  }
19
19
  }
20
-
@@ -7,8 +7,8 @@
7
7
  .euiSplitPanel__inner {
8
8
  flex-basis: 0%; // Make sure they're evenly split
9
9
  // Ensure no movement if they have click handlers
10
- transform: none !important; // sass-lint:disable-line no-important
11
- box-shadow: none !important; // sass-lint:disable-line no-important
10
+ transform: none !important; // stylelint-disable-line declaration-no-important
11
+ box-shadow: none !important; // stylelint-disable-line declaration-no-important
12
12
  }
13
13
  }
14
14