diff --git a/ui/src/components/menu/SideMenu.vue b/ui/src/components/menu/SideMenu.vue index b4aed5024bf..716fdb54d62 100644 --- a/ui/src/components/menu/SideMenu.vue +++ b/ui/src/components/menu/SideMenu.vue @@ -67,7 +67,7 @@ export default { z-index: 10; height: auto; - .ant-layout-sider-children { + /deep/ .ant-layout-sider-children { overflow-y: hidden; &:hover { diff --git a/ui/src/style/README.md b/ui/src/style/README.md index 4f4b7a4b0de..d60ceb3425f 100644 --- a/ui/src/style/README.md +++ b/ui/src/style/README.md @@ -37,3 +37,11 @@ - repeatly used elements like buttons, inputs 7. components - complex elements like dropdown, forms, table, search (usualy include this to components/FooterToolbar/ folder) + + +# The "/deep/" combinator +- use the /deep/ combinator (or in other versions ">>>") helps us to exclude "scoped" rules into global +- e.g. will scope a generated data ID like .a .b .c[data-abcde] {} +- but will scope .a[data-abcde] .b .c {} +- so everything after deep will be outside the defined scope +- watch this article for technical information. https://vue-loader.vuejs.org/guide/scoped-css.html#child-component-root-elements diff --git a/ui/src/views/dashboard/CapacityDashboard.vue b/ui/src/views/dashboard/CapacityDashboard.vue index 29d912097a6..1f19cf627be 100644 --- a/ui/src/views/dashboard/CapacityDashboard.vue +++ b/ui/src/views/dashboard/CapacityDashboard.vue @@ -1,21 +1,20 @@