From 814681d416be38924ce194ded06a0b841b9b6fd8 Mon Sep 17 00:00:00 2001 From: Greg Thompson Date: Thu, 1 Sep 2022 11:45:32 -0500 Subject: [PATCH 1/2] remove euiCallOutColor sass mixin --- src/components/call_out/_index.scss | 3 --- src/components/call_out/_mixins.scss | 23 ----------------------- src/components/call_out/_variables.scss | 7 ------- src/components/index.scss | 1 - 4 files changed, 34 deletions(-) delete mode 100644 src/components/call_out/_index.scss delete mode 100644 src/components/call_out/_mixins.scss delete mode 100644 src/components/call_out/_variables.scss diff --git a/src/components/call_out/_index.scss b/src/components/call_out/_index.scss deleted file mode 100644 index d1ee44203d1..00000000000 --- a/src/components/call_out/_index.scss +++ /dev/null @@ -1,3 +0,0 @@ -@import 'variables'; -@import 'mixins'; - diff --git a/src/components/call_out/_mixins.scss b/src/components/call_out/_mixins.scss deleted file mode 100644 index f3f140c240a..00000000000 --- a/src/components/call_out/_mixins.scss +++ /dev/null @@ -1,23 +0,0 @@ -// Kibana's Ace Editor uses this function, can't remove yet -// https://github.com/elastic/kibana/blob/main/src/core/public/styles/_ace_overrides.scss -// As well as deprecation notices -// https://github.com/elastic/kibana/blob/main/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/deprecation_types/reindex/flyout/_step_progress.scss -@function euiCallOutColor($type: 'primary', $returnBackgroundOrForeground: 'background') { - @warn 'euiCallOutColor() is set for deprecation. Please consider using EuiCallOut directly.'; - - @if (map-has-key($euiCallOutTypes, $type)) { - $color: map-get($euiCallOutTypes, $type); - $backgroundColor: tintOrShade($color, 90%, 70%); - $foregroundColor: shadeOrTint(makeHighContrastColor($color, $backgroundColor), 0, 20%); - - @if ($returnBackgroundOrForeground == 'background') { - @return $backgroundColor; - } @else if ($returnBackgroundOrForeground == 'foreground') { - @return $foregroundColor; - } @else { - @warn 'Incorrect value provided as $returnBackgroundOrForeground'; - } - } @else { - @warn 'Incorrect type of call out provided. See the $euiCallOutTypes map for allowed values.'; - } -} diff --git a/src/components/call_out/_variables.scss b/src/components/call_out/_variables.scss deleted file mode 100644 index 3e09e74d962..00000000000 --- a/src/components/call_out/_variables.scss +++ /dev/null @@ -1,7 +0,0 @@ -// Used in mixin that's used in Kibana -$euiCallOutTypes: ( - primary: $euiColorPrimary, - success: $euiColorSuccess, - warning: $euiColorWarning, - danger: $euiColorDanger, -); diff --git a/src/components/index.scss b/src/components/index.scss index 3fcf0647dfb..7bc33e3a928 100644 --- a/src/components/index.scss +++ b/src/components/index.scss @@ -4,7 +4,6 @@ @import 'badge/index'; @import 'basic_table/index'; @import 'button/index'; -@import 'call_out/index'; @import 'code/index'; @import 'collapsible_nav/index'; @import 'color_picker/index'; From 85fbd9cfb9a06e71c221548759679ade7b2b4d21 Mon Sep 17 00:00:00 2001 From: Greg Thompson Date: Thu, 1 Sep 2022 12:07:12 -0500 Subject: [PATCH 2/2] CL --- upcoming_changelogs/6201.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 upcoming_changelogs/6201.md diff --git a/upcoming_changelogs/6201.md b/upcoming_changelogs/6201.md new file mode 100644 index 00000000000..9ebf6b4f413 --- /dev/null +++ b/upcoming_changelogs/6201.md @@ -0,0 +1,3 @@ +**Breaking changes** + +- Removed `euiCallOutColor` Sass mixin