Skip to content

Commit

Permalink
Merge pull request #12175 from rak-phillip/bugfix/12174-header-tooltip
Browse files Browse the repository at this point in the history
Fix header tooltip styles
  • Loading branch information
rak-phillip authored Oct 9, 2024
2 parents ca84fb6 + 1d58406 commit 9b3c6ae
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
50 changes: 50 additions & 0 deletions shell/components/nav/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1077,4 +1077,54 @@ export default {
color: var(--secondary);
}
.user-menu {
:deep(.v-popper__arrow-container) {
display: none;
}
:deep(.v-popper__inner) {
padding: 10px 0 10px 0;
}
:deep(.v-popper) {
display: flex;
}
}
.user-menu-item {
a, &.no-link > span {
cursor: pointer;
padding: 0px 10px;
&:hover {
background-color: var(--dropdown-hover-bg);
color: var(--dropdown-hover-text);
text-decoration: none;
}
// When the menu item is focused, pop the margin and compensate the padding, so that
// the focus border appears within the menu
&:focus {
margin: 0 2px;
padding: 10px 8px;
}
}
&.no-link > span {
display: flex;
justify-content: space-between;
padding: 10px;
color: var(--link);
}
div.menu-separator {
cursor: default;
padding: 4px 0;
.menu-separator-line {
background-color: var(--border);
height: 1px;
}
}
}
</style>
6 changes: 5 additions & 1 deletion shell/components/nav/HeaderPageActionMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const handleBlurEvent = (event: KeyboardEvent) => {
:flip="false"
:placement="'bottom-end'"
:distance="-6"
:container="'.page-actions'"
>
<i
data-testid="page-actions-menu"
Expand Down Expand Up @@ -75,10 +76,13 @@ const handleBlurEvent = (event: KeyboardEvent) => {
</div>
</template>
</v-dropdown>
<div class="page-actions">
<!--Empty container for mounting popper content-->
</div>
</template>

<style lang="scss" scoped>
.v-popper__popper {
.page-actions :deep(.v-popper__popper) {
.v-popper__wrapper {
.v-popper__arrow-container {
display: none;
Expand Down

0 comments on commit 9b3c6ae

Please sign in to comment.