Skip to content

Commit

Permalink
feat(tool tips): added the CSS styling for tool tips
Browse files Browse the repository at this point in the history
Related to NEST/teal.modules.general#1216
  • Loading branch information
kpagacz authored and GitHub Enterprise committed Jul 1, 2021
1 parent a14443b commit 60d78c8
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Changed the displayed format of the data name and the column name in `data_extract_spec` UI elements. Both are now compressed to `<data name>.<column name>` if they don't change during runtime of the app.
* Added `ADSAFTTE` to the list of recognized ADaM dataset names.
* Added another example to `data_extract_spec`'s doc string showcasing app users can choose a variable used for filtering in the encoding panel.
* Added CSS styling to tool tips in teal modules.

### Bug fixes
* Fixed an edge case error when creating a filter on variable with all missing values crashed the app.
Expand Down
32 changes: 32 additions & 0 deletions inst/css/tooltips.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/* Tooltip container */
.teal-tooltip {
position: relative;
display: inline-block;
border-bottom: 1px dotted black;
}

/* Tooltip text */
.teal-tooltip .tooltiptext {
visibility: hidden;
background-color: black;
color: #fff;
text-align: center;
padding: 10px;
border-radius: 6px;
opacity: 0;

z-index: 10;
position: absolute;
width: 400px;
left: 100%;
top: -5px;

transition: all 0s ease 0s;
}

/* Show the tooltip text when you mouse over the tooltip container */
.teal-tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
transition: opacity 0.3s ease 0.4s;
}

0 comments on commit 60d78c8

Please sign in to comment.