Improve changeset
Signed-off-by: Olivier Liechti <olivier.liechti@wasabi-tech.com>
This commit is contained in:
@@ -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',
|
||||
},
|
||||
},
|
||||
...
|
||||
},
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user