Skip to content

Commit

Permalink
June deprecations (#7808)
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen authored Jun 4, 2024
1 parent 0ea6320 commit b1b7027
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 13 deletions.
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

0 comments on commit b1b7027

Please sign in to comment.