Skip to content

Commit

Permalink
revert current theming
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesDoberer committed Jun 6, 2024
1 parent 6b221e6 commit 1eff9f6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 65 deletions.
9 changes: 1 addition & 8 deletions core/src/services/web-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,7 @@ class WebComponentSvcClass {
}
const clientAPI = {
linkManager: window.Luigi.navigation,
uxManager: () => {
return {
...window.Luigi.ux,
getCurrentTheme: () => {
return window.Luigi.theming().getCurrentTheme();
}
};
},
uxManager: window.Luigi.ux,
getCurrentLocale: () => window.Luigi.i18n().getCurrentLocale(),
publishEvent: ev => {
if (eventBusElement.eventBus) {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -75,33 +75,6 @@ describe('JS-TEST-APP 2', () => {
);
});
});

it.only('Get current theme for a webcomponent', () => {
newConfig.navigation.nodes[0].children.push({
pathSegment: 'wc',
label: 'WC',
viewUrl: '/examples/microfrontends/helloWorld.js',
webcomponent: true
});
cy.visitTestApp('/home/wc', newConfig);
cy.get(
'luigi-wc-687474703a2f2f6c6f63616c686f73743a343530302f6578616d706c65732f6d6963726f66726f6e74656e64732f68656c6c6f576f726c642e6a73'
)
.shadow()
.contains('light')
.should('not.exist');
cy.get(
'luigi-wc-687474703a2f2f6c6f63616c686f73743a343530302f6578616d706c65732f6d6963726f66726f6e74656e64732f68656c6c6f576f726c642e6a73'
)
.shadow()
.contains('getCurrentTheme')
.click();
cy.get(
'luigi-wc-687474703a2f2f6c6f63616c686f73743a343530302f6578616d706c65732f6d6963726f66726f6e74656e64732f68656c6c6f576f726c642e6a73'
)
.shadow()
.contains('light');
});
});

describe('semiCollapsible settings of Left Side Navigation', () => {
Expand Down

0 comments on commit 1eff9f6

Please sign in to comment.