fix(overlays): put tooltip arrow css props on host

This commit is contained in:
Joren Broekema 2021-01-11 12:20:24 +01:00
parent 9fef0cc6c8
commit a04ea59c63
2 changed files with 10 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
'@lion/overlays': patch
---
Put tooltip arrow width and height css props on host of ArrowMixin.

View file

@ -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);
}