fleet/frontend/components/TooltipWrapper/_styles.scss
Gabriel Hernandez de0562a686
UI code cleanup and tests for self service feature (#19487)
various code cleanup tasks for the self service UI. Also adds some tests
for self service.


- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-06-11 12:56:50 +01:00

38 lines
842 B
SCSS

.component__tooltip-wrapper {
&.show-arrow {
@include tooltip5-arrow-styles;
}
display: inline-flex;
&__element {
white-space: nowrap;
line-height: initial;
}
&__underline {
width: fit-content;
border-bottom: 1px dashed $ui-fleet-black-50;
}
&__tip-text {
@include tooltip-text;
}
}
// for firefox we need to slightly shift the tooltip text to fit in line with the
// other text next to the tooltip. This is because firefox renders the layout
// slightly differently than webkit and edge, which makes it appear higher
// than text next to it.
// TODO: investigate more to see if there is a solution that will work
// cross browser.
@-moz-document url-prefix() {
.component__tooltip-wrapper {
&__underline {
position: relative;
top: 2px;
padding-bottom: 1px;
}
}
}