Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

June deprecations #7808

Merged
merged 3 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/eui/changelogs/upcoming/7808.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**Breaking changes**

- Removed deprecated `euiPalettePositive` and `euiPaletteNegative`. Use `euiPaletteGreen` and `euiPaletteRed` instead
1 change: 0 additions & 1 deletion packages/eui/src-docs/src/views/flyout/flyout_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,6 @@ export const FlyoutExample = {
},
{
title: 'Resizable flyouts',
isBeta: true,
source: [
{
type: GuideSectionTypes.JS,
Expand Down
8 changes: 0 additions & 8 deletions packages/eui/src/services/color/eui_palettes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,6 @@ export const euiPaletteRed = function (steps: number): EuiPalette {

return euiPalette(['white', redColor], steps);
};
/**
* @deprecated - use `euiPaletteRed` instead
*/
export const euiPaletteNegative = euiPaletteRed;

export const euiPaletteGreen = function (steps: number): EuiPalette {
if (steps === 1) {
Expand All @@ -215,10 +211,6 @@ export const euiPaletteGreen = function (steps: number): EuiPalette {

return euiPalette(['white', greenColor], steps);
};
/**
* @deprecated - use `euiPaletteGreen` instead
*/
export const euiPalettePositive = euiPaletteGreen;

export const euiPaletteCool = function (steps: number): EuiPalette {
if (steps === 1) {
Expand Down
2 changes: 0 additions & 2 deletions packages/eui/src/services/color/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ export {
euiPaletteComplementary,
euiPaletteRed,
euiPaletteGreen,
euiPaletteNegative,
euiPalettePositive,
euiPaletteCool,
euiPaletteWarm,
euiPaletteGray,
Expand Down
2 changes: 0 additions & 2 deletions packages/eui/src/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ export {
euiPaletteGray,
euiPaletteRed,
euiPaletteGreen,
euiPalettePositive,
euiPaletteNegative,
euiPaletteWarm,
getSteppedGradient,
hexToHsv,
Expand Down
Loading