mirror of
https://github.com/nasa/openmct.git
synced 2025-04-13 22:23:13 +00:00
more stacked plot fixes updated flexible container handling in styles inspector provider
This commit is contained in:
parent
b84161749e
commit
751442f74a
@ -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')
|
||||
);
|
||||
});
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user