Skip to content

Commit

Permalink
Merge pull request #218 from Dataport/fix/tooltip-font-family
Browse files Browse the repository at this point in the history
fix tooltip font family
  • Loading branch information
warm-coolguy authored Jan 20, 2025
2 parents efc36ba + 6d128f7 commit 68a4f86
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## unpublished

- Fix: Add `crossOrigin` differently to layer sources that are an instance of `ImageWMS` as they require it being set as `crossOrigin_` to be recognized.
- Fix: Add missing `font-family` css so that tooltips are always `Arial, sans-serif`.

## 2.0.0

Expand Down
7 changes: 7 additions & 0 deletions packages/core/src/utils/createMap/pullVuetifyStyleToShadow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@ export const pullVuetifyStyleToShadow = (shadowRoot: ShadowRoot) => {
return
}
shadowRoot.appendChild(vuetifyStyle)

// tooltips are technically a neighbour of the app; add missing font style
const tooltipStyle = document.createElement('style')
tooltipStyle.innerHTML = `.v-tooltip__content {
font-family: sans-serif;
}`
shadowRoot.appendChild(tooltipStyle)
}

0 comments on commit 68a4f86

Please sign in to comment.