Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolved tooltip's visibility in parental control popup #81

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions components/parental_control/extension/content/ui/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,12 @@ button {
cursor: pointer;
}

.tooltip {
.checkboxTooltip {
position: relative;
display: inline-block;
}

.tooltip .tooltiptext {
.checkboxTooltip .tooltiptext {
width: 195px;
height: 56px;
min-height: fit-content;
Expand All @@ -213,14 +213,14 @@ button {
padding: 8px;
position: absolute;
z-index: 1;
top: 115%; /* Position the tooltip above the element */
top: 115%;
left: 35%;
margin-left: -50px;
opacity: 0;
transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
.checkboxTooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}
4 changes: 2 additions & 2 deletions components/parental_control/extension/content/ui/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
<span id="resetPasswordLink">Reset password</span>
</div>
<div style="display: flex; flex-direction: column; margin-bottom: 10px; margin-top: 15px;">
<div class="checkbox-container tooltip">
<div class="checkbox-container checkboxTooltip">
<input type="checkbox" id="blockGamesCheckbox" style="margin: 5px;">
<label class="checkbox-label" for="blockGamesCheckbox">Block games</label>
<span class="tooltiptext">Foster productivity and creativity by minimizing gaming</span>
</div>
<div class="checkbox-container tooltip">
<div class="checkbox-container checkboxTooltip">
<input type="checkbox" id="blockSocialMediaCheckbox" style="margin: 5px;">
<label class="checkbox-label" for="blockSocialMediaCheckbox">Block social media</label>
<span class="tooltiptext">Encourage productive screen time by blocking social media sites.</span>
Expand Down
Loading