Skip to content

Commit

Permalink
Fix tooltip styles (#151)
Browse files Browse the repository at this point in the history
* Fix tooltip styles

* add dangling line

* Update src/tooltip/index.ts

Co-authored-by: Kyle Barron <[email protected]>

---------

Co-authored-by: Kyle Barron <[email protected]>
  • Loading branch information
vgeorge and kylebarron authored Oct 27, 2023
1 parent cf5c3b2 commit 11bfc42
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/tooltip/index.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
.lonboard-tooltip {
z-index: 1;
position: absolute;
color: black;
background-color: white;
padding: 10px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Remove spaces between table cells */
.lonboard-tooltip table {
border-collapse: collapse;
Expand All @@ -23,11 +14,11 @@

/* Define table cell borders and padding */
.lonboard-tooltip td {
border: 1px solid;
border: 1px solid rgb(204, 204, 204);
padding: 5px;
}

/* Make the first column bold */
.lonboard-tooltip td:first-child {
font-weight: bold;
font-weight: 450;
}
6 changes: 6 additions & 0 deletions src/tooltip/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ export function getTooltip({ object }: GeoArrowPickingInfo): TooltipContent {
return {
className: "lonboard-tooltip",
html: toHtmlTable(jsonObj),
style: {
backgroundColor: "#fff",
boxShadow: "0 0 15px rgba(0, 0, 0, 0.1)",
color: "#000",
padding: "6px",
},
};
}

Expand Down

0 comments on commit 11bfc42

Please sign in to comment.