diff --git a/changelogs/fragments/8541.yml b/changelogs/fragments/8541.yml new file mode 100644 index 000000000000..5b1b2457bc34 --- /dev/null +++ b/changelogs/fragments/8541.yml @@ -0,0 +1,2 @@ +fix: +- The workspace selector jump that occurs when hovering and clicking. ([#8541](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8541)) \ No newline at end of file diff --git a/src/plugins/workspace/public/components/workspace_selector/workspace_selector.scss b/src/plugins/workspace/public/components/workspace_selector/workspace_selector.scss index b62ea9dde66a..685d823b30c6 100644 --- a/src/plugins/workspace/public/components/workspace_selector/workspace_selector.scss +++ b/src/plugins/workspace/public/components/workspace_selector/workspace_selector.scss @@ -1,3 +1,9 @@ .workspaceNameLabel { background-color: $euiSideNavBackgroundColor; } + +.workspaceSelectorPopoverButton:hover, +.workspaceSelectorPopoverButton:focus { + transition: none !important; + transform: none !important; +} diff --git a/src/plugins/workspace/public/components/workspace_selector/workspace_selector.tsx b/src/plugins/workspace/public/components/workspace_selector/workspace_selector.tsx index e3a530ce507f..f0c0243703f5 100644 --- a/src/plugins/workspace/public/components/workspace_selector/workspace_selector.tsx +++ b/src/plugins/workspace/public/components/workspace_selector/workspace_selector.tsx @@ -66,6 +66,7 @@ export const WorkspaceSelector = ({ coreStart, registeredUseCases$ }: Props) => }; const button = currentWorkspace ? (