From a8399074116eeae60d235a2fcf021c7e55cd1b8a Mon Sep 17 00:00:00 2001 From: Olivier Liechti Date: Tue, 14 Jun 2022 10:49:35 +0200 Subject: [PATCH] Improve changeset Signed-off-by: Olivier Liechti --- .changeset/great-roses-pump.md | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/.changeset/great-roses-pump.md b/.changeset/great-roses-pump.md index 263254b63c..16a49bd464 100644 --- a/.changeset/great-roses-pump.md +++ b/.changeset/great-roses-pump.md @@ -2,16 +2,22 @@ '@backstage/plugin-catalog': patch --- -Previously, the color of the Entity Context Menu (in the Entity Page Header) was hardcoded as 'white'. This was an issue for themes that use a header with a white background. The color of the icon can now be overridden in the theme (PluginCatalogEntityContextMenu > button > color). Example: +Previously, the color of the Entity Context Menu (in the Entity Page Header) was hardcoded as `white`. +This was an issue for themes that use a header with a white background. By default, the color of the icon is now `theme.palette.bursts.fontColor`. + +It can now also be overridden in the theme, which is only necessary if the header title, subtitle and three-dots icon need to have different colors. For example: + +```typescript export function createThemeOverrides(theme: BackstageTheme): Overrides { -return { -PluginCatalogEntityContextMenu: { -button: { -color: 'blue', -}, -}, -... -}, -... -} + return { + PluginCatalogEntityContextMenu: { + button: { + color: 'blue', + }, + }, + ... + }, + ... + } +```