more stacked plot fixes updated flexible container handling in styles inspector provider

This commit is contained in:
Jamie V 2025-04-11 16:42:13 -07:00
parent b84161749e
commit 751442f74a
2 changed files with 4 additions and 4 deletions

View File

@ -153,21 +153,21 @@ test.describe('Stacked Plot styling', () => {
NO_STYLE_RGBA,
NO_STYLE_RGBA,
hexToRGB(setTextColor),
page.getByLabel('Stacked Plot Item Sine Wave Generator 1')
page.getByLabel('Stacked Plot Item Overlay Plot 1')
);
await checkStyles(
NO_STYLE_RGBA,
NO_STYLE_RGBA,
hexToRGB(setTextColor),
page.getByLabel('Stacked Plot Item Sine Wave Generator 2')
page.getByLabel('Stacked Plot Item Overlay Plot 2')
);
await checkFontStyles(
setFontSize,
setFontWeight,
setFontFamily,
page.getByLabel('Stacked Plot Item Sine Wave Generator 1')
page.getByLabel('Stacked Plot Item Overlay Plot 1')
);
});

View File

@ -70,7 +70,7 @@ export default function StylesInspectorViewProvider(openmct) {
domainObject?.type === 'flexible-layout' && objectContext.type === 'container';
const isLayoutItem = objectContext?.layoutItem;
if (isLayoutItem || hasStyles) {
if ((isLayoutItem || hasStyles) && !isFlexibleLayoutContainer) {
return true;
}