style: bootstrap tooltip added to fix text visibility issue (#30731)

This commit is contained in:
Mehak Nasir
2022-07-15 15:58:07 +05:00
committed by GitHub
parent 15b7564a73
commit 341c058223
2 changed files with 1 additions and 22 deletions

View File

@@ -71,25 +71,6 @@
}
}
.legacy-tooltip {
position: absolute;
z-index: 1070;
display: none;
margin: 0;
line-height: 1.55556;
font-family: "Inter","Helvetica Neue",Arial,sans-serif;
background: white;
color: black;
padding: 10px;
border-radius: 5px;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
&:hover,
&:active,
&:focus {
display: block;
}
}
// Layout control for discussion modules that does not apply to the discussion board
.discussion-module {
.discussion {

View File

@@ -12,9 +12,7 @@ from django.utils.translation import ugettext as _
<div class="d-flex w-100 small align-items-center">
${_("Welcome to the new discussions experience. Please share your feedback.")}
<a href="${legacy_url}" class="ml-2 text-white">
<i class="fa fa-info-circle">
<span class="legacy-tooltip">${_("View legacy experience")}</span>
</i>
<i class="fa fa-info-circle" data-toggle="tooltip" data-placement="bottom" title="${_('View legacy experience')}"> </i>
</a>
</div>
% else: