@elastic/eui 71.0.0 → 72.0.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.
- package/README.md +0 -7
- package/dist/eui_theme_dark.css +7747 -5854
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +7737 -5844
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/datagrid/data_grid.a11y.js +251 -0
- package/es/components/date_picker/auto_refresh/refresh_interval.js +3 -1
- package/es/components/date_picker/date_picker.a11y.js +83 -0
- package/es/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
- package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
- package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +160 -173
- package/es/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
- package/es/components/date_picker/super_date_picker/super_date_picker.js +16 -0
- package/es/components/delay_hide/delay_hide.a11y.js +106 -0
- package/es/components/delay_render/delay_render.a11y.js +106 -0
- package/es/components/empty_prompt/empty_prompt.a11y.js +63 -0
- package/es/components/error_boundary/error_boundary.a11y.js +67 -0
- package/es/components/error_boundary/error_boundary.js +45 -27
- package/es/components/expression/expression.a11y.js +254 -0
- package/es/components/filter_group/filter_group.a11y.js +281 -0
- package/es/components/focus_trap/focus_trap.a11y.js +131 -0
- package/es/components/form/file_picker/file_picker.js +1 -0
- package/es/components/header/header.a11y.js +374 -0
- package/es/components/icon/icon_ML.a11y.js +33 -0
- package/es/components/icon/icon_apps.a11y.js +33 -0
- package/es/components/icon/icon_editor.a11y.js +33 -0
- package/es/components/icon/icon_elastic.a11y.js +33 -0
- package/es/components/icon/icon_glyphs.a11y.js +33 -0
- package/es/components/icon/icon_tokens.a11y.js +33 -0
- package/es/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +1 -1
- package/es/components/page/page_side_bar/page_side_bar.js +3 -0
- package/es/components/page/page_template.js +1 -15
- package/es/components/selectable/selectable.js +4 -3
- package/es/components/selectable/selectable_list/selectable_list.js +17 -5
- package/es/components/tabs/tab.js +7 -17
- package/es/components/tabs/tabbed_content/tabbed_content.js +0 -16
- package/es/components/tabs/tabs.js +7 -11
- package/es/components/tabs/tabs_context.js +13 -0
- package/eui.d.ts +60 -43
- package/i18ntokens.json +34 -18
- package/lib/components/datagrid/data_grid.a11y.js +255 -0
- package/lib/components/date_picker/auto_refresh/refresh_interval.js +3 -1
- package/lib/components/date_picker/date_picker.a11y.js +89 -0
- package/lib/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
- package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
- package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +155 -168
- package/lib/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +16 -0
- package/lib/components/delay_hide/delay_hide.a11y.js +111 -0
- package/lib/components/delay_render/delay_render.a11y.js +111 -0
- package/lib/components/empty_prompt/empty_prompt.a11y.js +72 -0
- package/lib/components/error_boundary/error_boundary.a11y.js +75 -0
- package/lib/components/error_boundary/error_boundary.js +49 -29
- package/lib/components/expression/expression.a11y.js +262 -0
- package/lib/components/filter_group/filter_group.a11y.js +287 -0
- package/lib/components/focus_trap/focus_trap.a11y.js +140 -0
- package/lib/components/form/file_picker/file_picker.js +1 -0
- package/lib/components/header/header.a11y.js +385 -0
- package/lib/components/icon/icon_ML.a11y.js +40 -0
- package/lib/components/icon/icon_apps.a11y.js +40 -0
- package/lib/components/icon/icon_editor.a11y.js +40 -0
- package/lib/components/icon/icon_elastic.a11y.js +40 -0
- package/lib/components/icon/icon_glyphs.a11y.js +40 -0
- package/lib/components/icon/icon_tokens.a11y.js +40 -0
- package/lib/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -2
- package/lib/components/page/page_side_bar/page_side_bar.js +4 -0
- package/lib/components/page/page_template.js +1 -15
- package/lib/components/selectable/selectable.js +4 -3
- package/lib/components/selectable/selectable_list/selectable_list.js +17 -5
- package/lib/components/tabs/tab.js +14 -17
- package/lib/components/tabs/tabbed_content/tabbed_content.js +0 -16
- package/lib/components/tabs/tabs.js +8 -14
- package/lib/components/tabs/tabs_context.js +23 -0
- package/optimize/es/components/datagrid/data_grid.a11y.js +234 -0
- package/optimize/es/components/date_picker/auto_refresh/refresh_interval.js +3 -1
- package/optimize/es/components/date_picker/date_picker.a11y.js +73 -0
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +145 -169
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.js +2 -0
- package/optimize/es/components/delay_hide/delay_hide.a11y.js +96 -0
- package/optimize/es/components/delay_render/delay_render.a11y.js +96 -0
- package/optimize/es/components/empty_prompt/empty_prompt.a11y.js +63 -0
- package/optimize/es/components/error_boundary/error_boundary.a11y.js +67 -0
- package/optimize/es/components/error_boundary/error_boundary.js +37 -26
- package/optimize/es/components/expression/expression.a11y.js +243 -0
- package/optimize/es/components/filter_group/filter_group.a11y.js +271 -0
- package/optimize/es/components/focus_trap/focus_trap.a11y.js +120 -0
- package/optimize/es/components/form/file_picker/file_picker.js +1 -0
- package/optimize/es/components/header/header.a11y.js +364 -0
- package/optimize/es/components/icon/icon_ML.a11y.js +33 -0
- package/optimize/es/components/icon/icon_apps.a11y.js +33 -0
- package/optimize/es/components/icon/icon_editor.a11y.js +33 -0
- package/optimize/es/components/icon/icon_elastic.a11y.js +33 -0
- package/optimize/es/components/icon/icon_glyphs.a11y.js +33 -0
- package/optimize/es/components/icon/icon_tokens.a11y.js +33 -0
- package/optimize/es/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +1 -1
- package/optimize/es/components/page/page_side_bar/page_side_bar.js +3 -0
- package/optimize/es/components/selectable/selectable.js +2 -2
- package/optimize/es/components/selectable/selectable_list/selectable_list.js +15 -4
- package/optimize/es/components/tabs/tab.js +7 -5
- package/optimize/es/components/tabs/tabs.js +7 -11
- package/optimize/es/components/tabs/tabs_context.js +13 -0
- package/optimize/lib/components/datagrid/data_grid.a11y.js +248 -0
- package/optimize/lib/components/date_picker/auto_refresh/refresh_interval.js +3 -1
- package/optimize/lib/components/date_picker/date_picker.a11y.js +87 -0
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +146 -167
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.js +2 -0
- package/optimize/lib/components/delay_hide/delay_hide.a11y.js +111 -0
- package/optimize/lib/components/delay_render/delay_render.a11y.js +111 -0
- package/optimize/lib/components/empty_prompt/empty_prompt.a11y.js +72 -0
- package/optimize/lib/components/error_boundary/error_boundary.a11y.js +75 -0
- package/optimize/lib/components/error_boundary/error_boundary.js +41 -28
- package/optimize/lib/components/expression/expression.a11y.js +254 -0
- package/optimize/lib/components/filter_group/filter_group.a11y.js +287 -0
- package/optimize/lib/components/focus_trap/focus_trap.a11y.js +140 -0
- package/optimize/lib/components/form/file_picker/file_picker.js +1 -0
- package/optimize/lib/components/header/header.a11y.js +385 -0
- package/optimize/lib/components/icon/icon_ML.a11y.js +40 -0
- package/optimize/lib/components/icon/icon_apps.a11y.js +40 -0
- package/optimize/lib/components/icon/icon_editor.a11y.js +40 -0
- package/optimize/lib/components/icon/icon_elastic.a11y.js +40 -0
- package/optimize/lib/components/icon/icon_glyphs.a11y.js +40 -0
- package/optimize/lib/components/icon/icon_tokens.a11y.js +40 -0
- package/optimize/lib/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -2
- package/optimize/lib/components/page/page_side_bar/page_side_bar.js +4 -0
- package/optimize/lib/components/selectable/selectable.js +2 -2
- package/optimize/lib/components/selectable/selectable_list/selectable_list.js +15 -4
- package/optimize/lib/components/tabs/tab.js +15 -5
- package/optimize/lib/components/tabs/tabs.js +8 -14
- package/optimize/lib/components/tabs/tabs_context.js +23 -0
- package/package.json +14 -19
- package/src/components/basic_table/_basic_table.scss +1 -4
- package/src/components/button/button_empty/_button_empty.scss +2 -4
- package/src/components/button/button_group/_button_group.scss +1 -1
- package/src/components/button/button_group/_button_group_button.scss +3 -4
- package/src/components/button/button_icon/_button_icon.scss +0 -3
- package/src/components/collapsible_nav/_collapsible_nav.scss +1 -1
- package/src/components/collapsible_nav/collapsible_nav_group/_collapsible_nav_group.scss +1 -1
- package/src/components/color_picker/_color_picker.scss +3 -2
- package/src/components/color_picker/_hue.scss +7 -7
- package/src/components/color_picker/_saturation.scss +1 -1
- package/src/components/color_picker/color_palette_display/_mixins.scss +1 -1
- package/src/components/color_picker/color_stops/_color_stops.scss +2 -3
- package/src/components/combo_box/_combo_box.scss +7 -6
- package/src/components/combo_box/combo_box_input/_combo_box_input.scss +2 -1
- package/src/components/combo_box/combo_box_input/_combo_box_placeholder.scss +1 -1
- package/src/components/combo_box/combo_box_options_list/_combo_box_options_list.scss +2 -3
- package/src/components/control_bar/_variables.scss +0 -1
- package/src/components/datagrid/_data_grid_data_row.scss +4 -5
- package/src/components/datagrid/_mixins.scss +1 -1
- package/src/components/datagrid/body/_data_grid_footer_row.scss +2 -1
- package/src/components/datagrid/body/header/_data_grid_column_resizer.scss +3 -4
- package/src/components/datagrid/body/header/_data_grid_header_row.scss +1 -1
- package/src/components/datagrid/controls/_data_grid_column_sorting.scss +1 -2
- package/src/components/date_picker/_date_picker_range.scss +1 -1
- package/src/components/date_picker/super_date_picker/_super_date_picker.scss +1 -4
- package/src/components/date_picker/super_date_picker/quick_select_popover/_quick_select_popover.scss +15 -1
- package/src/components/drag_and_drop/_draggable.scss +3 -5
- package/src/components/drag_and_drop/_droppable.scss +1 -1
- package/src/components/empty_prompt/_empty_prompt.scss +1 -1
- package/src/components/filter_group/_filter_group.scss +2 -2
- package/src/components/filter_group/_filter_select_item.scss +0 -1
- package/src/components/form/checkbox/_checkbox.scss +5 -3
- package/src/components/form/described_form_group/_described_form_group.scss +0 -1
- package/src/components/form/field_password/_field_password.scss +1 -1
- package/src/components/form/field_search/_field_search.scss +1 -1
- package/src/components/form/file_picker/_file_picker.scss +15 -16
- package/src/components/form/form_control_layout/_form_control_layout.scss +6 -7
- package/src/components/form/form_control_layout/_form_control_layout_delimited.scss +4 -6
- package/src/components/form/form_row/_form_row.scss +3 -0
- package/src/components/form/radio/_radio.scss +5 -3
- package/src/components/form/select/_select.scss +1 -1
- package/src/components/form/switch/_switch.scss +3 -1
- package/src/components/header/_mixins.scss +1 -1
- package/src/components/header/header_section/_header_section_item.scss +4 -4
- package/src/components/header/header_section/_header_section_item_button.scss +0 -1
- package/src/components/key_pad_menu/_key_pad_menu_item.scss +2 -7
- package/src/components/markdown_editor/_markdown_editor_drop_zone.scss +4 -4
- package/src/components/markdown_editor/_markdown_editor_footer.scss +1 -1
- package/src/components/markdown_editor/_markdown_editor_text_area.scss +2 -3
- package/src/components/markdown_editor/_markdown_format.scss +4 -2
- package/src/components/notification/_notification_event.scss +2 -2
- package/src/components/page/page_content/_page_content_body.scss +0 -1
- package/src/components/page/page_content/_page_content_header_section.scss +0 -1
- package/src/components/page/page_side_bar/_page_side_bar.scss +0 -1
- package/src/components/panel/split_panel/_split_panel.scss +2 -2
- package/src/components/resizable_container/_resizable_button.scss +31 -31
- package/src/components/resizable_container/_resizable_collapse_button.scss +9 -9
- package/src/components/selectable/selectable_templates/_selectable_template_sitewide_option.scss +1 -1
- package/src/components/side_nav/_mixins.scss +1 -1
- package/src/components/side_nav/_side_nav.scss +2 -1
- package/src/components/side_nav/_side_nav_item.scss +2 -3
- package/src/components/steps/_steps.scss +2 -1
- package/src/components/suggest/_suggest_input.scss +1 -1
- package/src/components/suggest/_suggest_item.scss +4 -3
- package/src/components/table/_responsive.scss +5 -3
- package/src/components/table/_table.scss +2 -4
- package/src/components/table/mobile/_mobile.scss +0 -2
- package/src/components/tree_view/tree_view.scss +2 -2
- package/src/global_styling/mixins/_form.scss +7 -18
- package/src/global_styling/mixins/_header.scss +2 -2
- package/src/global_styling/mixins/_helpers.scss +1 -2
- package/src/global_styling/mixins/_icons.scss +1 -1
- package/src/global_styling/mixins/_range.scss +4 -8
- package/src/global_styling/mixins/_responsive.scss +3 -8
- package/src/global_styling/mixins/_shadow.scss +5 -9
- package/src/global_styling/mixins/_states.scss +2 -2
- package/src/global_styling/mixins/_typography.scss +16 -19
- package/src/global_styling/variables/_colors_vis.scss +1 -1
- package/src/global_styling/variables/_typography.scss +1 -3
- package/src/themes/amsterdam/_colors_dark.scss +2 -1
- package/src/themes/amsterdam/_colors_light.scss +2 -0
- package/src/themes/amsterdam/global_styling/mixins/_link.scss +1 -1
- package/src/themes/amsterdam/global_styling/mixins/_states.scss +0 -1
- package/src/themes/amsterdam/global_styling/mixins/_typography.scss +1 -2
- package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_days.scss +0 -1
- package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_month_year.scss +0 -1
- package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_times.scss +3 -4
- package/src/themes/amsterdam/global_styling/react_date_picker/_mixins.scss +0 -1
- package/src/themes/amsterdam/global_styling/variables/_typography.scss +1 -2
- package/src/themes/amsterdam/overrides/_color_stops.scss +4 -5
- package/src/themes/amsterdam/overrides/_combo_box.scss +3 -0
- package/src/themes/amsterdam/overrides/_form_control_layout.scss +3 -0
- package/src/themes/amsterdam/overrides/_form_control_layout_delimited.scss +5 -4
- package/src/themes/amsterdam/overrides/_header.scss +2 -2
- package/src/themes/amsterdam/overrides/_hue.scss +6 -6
- package/src/themes/amsterdam/overrides/_key_pad_menu.scss +2 -2
- package/src/themes/amsterdam/overrides/_steps.scss +1 -2
- package/src/themes/legacy/_colors_dark.scss +2 -1
- package/src/themes/legacy/_colors_light.scss +2 -0
- package/src/themes/legacy/reset/_reset.scss +8 -7
- package/test-env/components/datagrid/data_grid.a11y.js +248 -0
- package/test-env/components/date_picker/auto_refresh/refresh_interval.js +3 -1
- package/test-env/components/date_picker/date_picker.a11y.js +87 -0
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +153 -166
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +16 -0
- package/test-env/components/delay_hide/delay_hide.a11y.js +111 -0
- package/test-env/components/delay_render/delay_render.a11y.js +111 -0
- package/test-env/components/empty_prompt/empty_prompt.a11y.js +72 -0
- package/test-env/components/error_boundary/error_boundary.a11y.js +75 -0
- package/test-env/components/error_boundary/error_boundary.js +48 -28
- package/test-env/components/expression/expression.a11y.js +254 -0
- package/test-env/components/filter_group/filter_group.a11y.js +287 -0
- package/test-env/components/focus_trap/focus_trap.a11y.js +140 -0
- package/test-env/components/form/file_picker/file_picker.js +1 -0
- package/test-env/components/header/header.a11y.js +385 -0
- package/test-env/components/icon/icon_ML.a11y.js +40 -0
- package/test-env/components/icon/icon_apps.a11y.js +40 -0
- package/test-env/components/icon/icon_editor.a11y.js +40 -0
- package/test-env/components/icon/icon_elastic.a11y.js +40 -0
- package/test-env/components/icon/icon_glyphs.a11y.js +40 -0
- package/test-env/components/icon/icon_tokens.a11y.js +40 -0
- package/test-env/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -2
- package/test-env/components/page/page_side_bar/page_side_bar.js +4 -0
- package/test-env/components/page/page_template.js +1 -15
- package/test-env/components/selectable/selectable.js +4 -3
- package/test-env/components/selectable/selectable_list/selectable_list.js +17 -5
- package/test-env/components/tabs/tab.js +15 -17
- package/test-env/components/tabs/tabbed_content/tabbed_content.js +0 -16
- package/test-env/components/tabs/tabs.js +8 -14
- package/test-env/components/tabs/tabs_context.js +23 -0
- package/scripts/postinstall.js +0 -9
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
@mixin euiPlaceholderPerBrowser {
|
|
58
|
-
//
|
|
58
|
+
// stylelint-disable selector-no-vendor-prefix
|
|
59
59
|
// Each prefix must be its own content block
|
|
60
60
|
&::-webkit-input-placeholder { @content; opacity: 1; }
|
|
61
61
|
&::-moz-placeholder { @content; opacity: 1; }
|
|
@@ -78,7 +78,6 @@
|
|
|
78
78
|
font-size: $euiFontSizeS;
|
|
79
79
|
color: $euiTextColor;
|
|
80
80
|
|
|
81
|
-
// sass-lint:disable-block mixins-before-declarations
|
|
82
81
|
@include euiPlaceholderPerBrowser {
|
|
83
82
|
color: $euiFormControlPlaceholderText;
|
|
84
83
|
}
|
|
@@ -143,7 +142,6 @@
|
|
|
143
142
|
// 1. Must supply both values to background-size or some browsers apply the single value to both directions
|
|
144
143
|
|
|
145
144
|
@mixin euiFormControlDefaultShadow($borderOnly: false) {
|
|
146
|
-
// sass-lint:disable-block indentation
|
|
147
145
|
background-color: $euiFormBackgroundColor;
|
|
148
146
|
background-repeat: no-repeat;
|
|
149
147
|
background-size: 0% 100%; // 1
|
|
@@ -164,14 +162,13 @@
|
|
|
164
162
|
|
|
165
163
|
// Fixes bug in Firefox where adding a transition to the background-color
|
|
166
164
|
// caused a flash of differently styled dropdown.
|
|
167
|
-
@supports (-moz-appearance: none) {
|
|
165
|
+
@supports (-moz-appearance: none) {
|
|
168
166
|
// List *must* be in the same order as the above.
|
|
169
167
|
transition-property: box-shadow, background-image, background-size;
|
|
170
168
|
}
|
|
171
169
|
}
|
|
172
170
|
|
|
173
171
|
@mixin euiFormControlFocusStyle($borderOnly: false) {
|
|
174
|
-
// sass-lint:disable-block indentation, empty-args
|
|
175
172
|
background-color: tintOrShade($euiColorEmptyShade, 0%, 40%);
|
|
176
173
|
background-image: euiFormControlGradient();
|
|
177
174
|
background-size: 100% 100%; // 1
|
|
@@ -180,8 +177,7 @@
|
|
|
180
177
|
@if ($borderOnly) {
|
|
181
178
|
box-shadow: inset 0 0 0 1px $euiFormBorderColor;
|
|
182
179
|
} @else {
|
|
183
|
-
box-shadow:
|
|
184
|
-
inset 0 0 0 1px $euiFormBorderColor;
|
|
180
|
+
box-shadow: inset 0 0 0 1px $euiFormBorderColor;
|
|
185
181
|
}
|
|
186
182
|
}
|
|
187
183
|
|
|
@@ -191,7 +187,6 @@
|
|
|
191
187
|
}
|
|
192
188
|
|
|
193
189
|
@mixin euiFormControlDisabledTextStyle {
|
|
194
|
-
// sass-lint:disable-block no-vendor-prefixes
|
|
195
190
|
color: $euiFormControlDisabledColor;
|
|
196
191
|
-webkit-text-fill-color: $euiFormControlDisabledColor; // Required for Safari
|
|
197
192
|
}
|
|
@@ -202,14 +197,12 @@
|
|
|
202
197
|
background: $euiFormBackgroundDisabledColor;
|
|
203
198
|
box-shadow: inset 0 0 0 1px $euiFormBorderDisabledColor;
|
|
204
199
|
|
|
205
|
-
// sass-lint:disable-block mixins-before-declarations
|
|
206
200
|
@include euiPlaceholderPerBrowser {
|
|
207
201
|
color: $euiFormControlDisabledColor;
|
|
208
202
|
}
|
|
209
203
|
}
|
|
210
204
|
|
|
211
205
|
@mixin euiFormControlReadOnlyStyle {
|
|
212
|
-
// sass-lint:disable-block no-vendor-prefixes
|
|
213
206
|
cursor: default;
|
|
214
207
|
color: $euiTextColor;
|
|
215
208
|
-webkit-text-fill-color: $euiTextColor; // Required for Safari
|
|
@@ -219,7 +212,6 @@
|
|
|
219
212
|
box-shadow: inset 0 0 0 1px $euiFormBorderDisabledColor;
|
|
220
213
|
}
|
|
221
214
|
|
|
222
|
-
|
|
223
215
|
// 2. Override invalid state with focus state.
|
|
224
216
|
|
|
225
217
|
@mixin euiFormControlStyle($borderOnly: false, $includeStates: true, $includeSizes: true) {
|
|
@@ -249,7 +241,6 @@
|
|
|
249
241
|
}
|
|
250
242
|
|
|
251
243
|
// Needs to be set for autofill
|
|
252
|
-
// sass-lint:disable-block no-vendor-prefixes
|
|
253
244
|
&:-webkit-autofill {
|
|
254
245
|
-webkit-text-fill-color: lightOrDarkTheme($euiColorDarkestShade, $euiColorLightShade);
|
|
255
246
|
|
|
@@ -257,7 +248,6 @@
|
|
|
257
248
|
color: lightOrDarkTheme($euiColorDarkestShade, $euiColorLightShade);
|
|
258
249
|
}
|
|
259
250
|
}
|
|
260
|
-
|
|
261
251
|
}
|
|
262
252
|
|
|
263
253
|
@if ($includeSizes) {
|
|
@@ -266,7 +256,7 @@
|
|
|
266
256
|
}
|
|
267
257
|
|
|
268
258
|
&--inGroup {
|
|
269
|
-
//
|
|
259
|
+
// stylelint-disable-next-line declaration-no-important
|
|
270
260
|
box-shadow: none !important;
|
|
271
261
|
border-radius: 0;
|
|
272
262
|
}
|
|
@@ -313,12 +303,11 @@
|
|
|
313
303
|
} @else if $type == 'square' {
|
|
314
304
|
border-radius: $euiCheckboxBorderRadius;
|
|
315
305
|
}
|
|
316
|
-
|
|
306
|
+
|
|
317
307
|
transition: background-color $euiAnimSpeedFast ease-in,
|
|
318
|
-
border-color $euiAnimSpeedFast ease-in;
|
|
308
|
+
border-color $euiAnimSpeedFast ease-in; // stylelint-disable-line indentation
|
|
319
309
|
}
|
|
320
310
|
|
|
321
|
-
|
|
322
311
|
@mixin euiCustomControlSelected($type: null) {
|
|
323
312
|
border-color: $euiColorPrimary;
|
|
324
313
|
background-color: $euiColorPrimary;
|
|
@@ -363,7 +352,7 @@
|
|
|
363
352
|
|
|
364
353
|
@mixin euiHiddenSelectableInput {
|
|
365
354
|
position: absolute;
|
|
366
|
-
//
|
|
355
|
+
// stylelint-disable-next-line declaration-no-important
|
|
367
356
|
opacity: 0 !important; // Make sure it's still hidden when :disabled
|
|
368
357
|
width: 100%;
|
|
369
358
|
height: 100%;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@import '../variables/header';
|
|
2
2
|
|
|
3
3
|
@mixin euiHeaderAffordForFixed($headerHeight: $euiHeaderHeightCompensation) {
|
|
4
|
-
// The
|
|
4
|
+
// The `@at-root #{&}` allows for grouping alongside another specific body class.
|
|
5
5
|
// When not applied inside of another selector, it simply renders with the single class
|
|
6
|
-
|
|
6
|
+
@at-root #{&}.euiBody--headerIsFixed {
|
|
7
7
|
padding-top: $headerHeight;
|
|
8
8
|
|
|
9
9
|
// When the EuiHeader is fixed, we need to account for it in the position of the flyout
|
|
@@ -4,14 +4,13 @@
|
|
|
4
4
|
@mixin euiScrollBar($thumbColor: $euiColorDarkShade, $trackBackgroundColor: transparent, $size: 'thin') {
|
|
5
5
|
// Firefox's scrollbar coloring cascades, but the sizing does not,
|
|
6
6
|
// so it's being added to this mixin for allowing support wherever custom scrollbars are
|
|
7
|
-
// sass-lint:disable-block no-misspelled-properties
|
|
8
7
|
scrollbar-color: transparentize($thumbColor, .5) $trackBackgroundColor; // Firefox support
|
|
9
8
|
|
|
10
9
|
@if ($size == 'thin') {
|
|
11
10
|
scrollbar-width: thin;
|
|
12
11
|
}
|
|
13
12
|
|
|
14
|
-
//
|
|
13
|
+
// stylelint-disable selector-no-vendor-prefix
|
|
15
14
|
&::-webkit-scrollbar {
|
|
16
15
|
width: $euiScrollBar;
|
|
17
16
|
height: $euiScrollBar;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// For using icons as background images (data-uri)
|
|
2
2
|
@mixin euiIconBackground($type, $color: $euiColorEmptyShade) {
|
|
3
|
-
//
|
|
3
|
+
// stylelint-disable string-quotes
|
|
4
4
|
@if variable-exists(type) == false {
|
|
5
5
|
@error 'A $type:string must be provided to @mixin euiIconBackground().';
|
|
6
6
|
} @else if type-of($color) != color {
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// Prefixes are unique in this file
|
|
2
|
-
// sass-lint:disable no-vendor-prefixes
|
|
3
|
-
|
|
4
1
|
/*
|
|
5
2
|
The CSS in JS version of this file lives in:
|
|
6
3
|
- src/components/form/range/range.styles.ts
|
|
@@ -31,10 +28,10 @@ The following files still use the Sass version:
|
|
|
31
28
|
}
|
|
32
29
|
|
|
33
30
|
@mixin euiRangeThumbBoxShadow {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
box-shadow:
|
|
32
|
+
0 0 0 1px $euiRangeThumbBorderColor,
|
|
33
|
+
0 2px 2px -1px rgba($euiShadowColor, .2),
|
|
34
|
+
0 1px 5px -2px rgba($euiShadowColor, .2);
|
|
38
35
|
}
|
|
39
36
|
|
|
40
37
|
@mixin euiRangeThumbFocusBoxShadow {
|
|
@@ -58,7 +55,6 @@ The following files still use the Sass version:
|
|
|
58
55
|
&::-ms-thumb { @content; }
|
|
59
56
|
}
|
|
60
57
|
|
|
61
|
-
|
|
62
58
|
@mixin euiRangeThumbFocus {
|
|
63
59
|
@include euiRangeThumbBorder;
|
|
64
60
|
@include euiRangeThumbFocusBoxShadow;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
// This file makes use of double quotes to format errors with nested single quotes
|
|
2
|
-
// The indentation linting freaks out on comments above else statements and is disabled.
|
|
3
|
-
|
|
4
|
-
// sass-lint:disable quotes, no-warn, indentation
|
|
5
|
-
|
|
6
1
|
// A sem-complicated mixin for breakpoints, that takes any number of
|
|
7
2
|
// named breakpoints that exists in $euiBreakpoints.
|
|
8
3
|
|
|
@@ -23,7 +18,7 @@
|
|
|
23
18
|
@media only screen and (min-width: $minSize) {
|
|
24
19
|
@content;
|
|
25
20
|
}
|
|
26
|
-
|
|
21
|
+
// If it's not the last item, add a max-width
|
|
27
22
|
} @else {
|
|
28
23
|
|
|
29
24
|
// Set the max size to the value of the next size (-1px as to not overlap)
|
|
@@ -34,14 +29,14 @@
|
|
|
34
29
|
@media only screen and (max-width: $maxSize) {
|
|
35
30
|
@content;
|
|
36
31
|
}
|
|
37
|
-
|
|
32
|
+
// Otherwise it should have a min and max width
|
|
38
33
|
} @else {
|
|
39
34
|
@media only screen and (min-width: $minSize) and (max-width: $maxSize) {
|
|
40
35
|
@content;
|
|
41
36
|
}
|
|
42
37
|
}
|
|
43
38
|
}
|
|
44
|
-
|
|
39
|
+
// If it's not a known breakpoint, throw a warning
|
|
45
40
|
} @else {
|
|
46
41
|
@warn "euiBreakpoint(): '#{$size}' is not a valid size in $euiBreakpoints. Accepted values are '#{$euiBreakpointKeys}'";
|
|
47
42
|
}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
// This file uses RGBA literal values responsibly
|
|
2
|
-
// This file uses off-pattern indentation to be more readable
|
|
3
|
-
|
|
4
|
-
// sass-lint:disable no-color-literals, no-color-keywords, indentation, quotes
|
|
5
|
-
|
|
6
1
|
@function shadowOpacity($opacity) {
|
|
7
2
|
@if (lightness($euiTextColor) < 50) {
|
|
8
3
|
@return $opacity * 1;
|
|
@@ -76,15 +71,16 @@
|
|
|
76
71
|
0 23px 35px rgba($color, shadowOpacity(.05));
|
|
77
72
|
}
|
|
78
73
|
|
|
74
|
+
// stylelint-disable color-named
|
|
79
75
|
@mixin euiOverflowShadow($direction: 'y', $side: 'both') {
|
|
80
76
|
$hideHeight: $euiScrollBarCornerThin * 1.25;
|
|
81
77
|
$gradient: null;
|
|
82
78
|
$gradientStart:
|
|
83
|
-
|
|
84
|
-
|
|
79
|
+
transparentize(red, .9) 0%,
|
|
80
|
+
transparentize(red, 0) $hideHeight;
|
|
85
81
|
$gradientEnd:
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
transparentize(red, 0) calc(100% - #{$hideHeight}),
|
|
83
|
+
transparentize(red, .9) 100%;
|
|
88
84
|
@if ($side == 'both' or $side == 'start' or $side == 'end') {
|
|
89
85
|
@if ($side == 'both') {
|
|
90
86
|
$gradient: $gradientStart, $gradientEnd;
|
|
@@ -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
|
-
//
|
|
4
|
+
// stylelint-disable-next-line declaration-no-important
|
|
5
5
|
animation: $euiAnimSpeedSlow $euiAnimSlightResistance 1 normal forwards focusRingAnimateLarge !important;
|
|
6
6
|
} @else {
|
|
7
|
-
//
|
|
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
|
-
//
|
|
2
|
-
//
|
|
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
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
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)
|
|
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,7 +1,6 @@
|
|
|
1
1
|
// Font sizing extends, using rem mixin
|
|
2
2
|
// All line-heights are aligned to baseline grid
|
|
3
|
-
//
|
|
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;
|
|
@@ -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;
|
|
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;
|
|
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;
|
|
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)
|
|
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
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
.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
|
|
9
|
-
display: none !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:
|
|
17
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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; //
|
|
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; //
|
|
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
|
-
|