Skip to content

Rancher and NeuVector integration and plugin problem#207

Merged
xingzhang-suse merged 4 commits intoneuvector:mainfrom
rushk014:main
Mar 26, 2026
Merged

Rancher and NeuVector integration and plugin problem#207
xingzhang-suse merged 4 commits intoneuvector:mainfrom
rushk014:main

Conversation

@rushk014
Copy link
Copy Markdown
Collaborator

Fixes issue with missing ScoreGauge needle.

Refactors how theming is handled by the extension

  • Replaces rancherTheme props with Rancher css variables where possible
  • Replaces broken theme-aware code for AG Grid components with MutationObserver mixin agGridTheme.js

Resolves #201

…s variables (neuvector#201)

Replaces all instances of the computed props rancherTheme & isLightTheme with Rancher's native CSS variables (--body-text, --modal-bg, --overlay-bg, etc.)
Replaces RANCHER_CONST.R_THEME cookie with MutationObserver mixin to read document body element
isLightTheme: nvVariables.isLightTheme,
};
computed: {
isLightTheme() { return !document.body.classList.contains('theme-dark'); }
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isLightTheme is not used in this module.
There should be some more modules have this unused variable.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops it is a leftover artifact of refactoring. I will remove it

Copy link
Copy Markdown
Collaborator

@xingzhang-suse xingzhang-suse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rancher and NeuVector integration and plugin problem (Styling)

2 participants