Skip to content

Commit

Permalink
fix(overlays): put tooltip arrow css props on host
Browse files Browse the repository at this point in the history
  • Loading branch information
Joren Broekema committed Jan 11, 2021
1 parent 9fef0cc commit a04ea59
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/tidy-cheetahs-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lion/overlays': patch
---

Put tooltip arrow width and height css props on host of ArrowMixin.
7 changes: 5 additions & 2 deletions packages/overlays/src/ArrowMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,17 @@ export const ArrowMixinImplementation = superclass =>
return [
superCtor.styles || [],
css`
:host {
--tooltip-arrow-width: 12px;
--tooltip-arrow-height: 8px;
}
.arrow svg {
display: block;
}
.arrow {
position: absolute;
--tooltip-arrow-width: 12px;
--tooltip-arrow-height: 8px;
width: var(--tooltip-arrow-width);
height: var(--tooltip-arrow-height);
}
Expand Down

0 comments on commit a04ea59

Please sign in to comment.