fix(overlays): put tooltip arrow css props on host
This commit is contained in:
parent
9fef0cc6c8
commit
a04ea59c63
2 changed files with 10 additions and 2 deletions
5
.changeset/tidy-cheetahs-drop.md
Normal file
5
.changeset/tidy-cheetahs-drop.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@lion/overlays': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Put tooltip arrow width and height css props on host of ArrowMixin.
|
||||||
|
|
@ -30,14 +30,17 @@ export const ArrowMixinImplementation = superclass =>
|
||||||
return [
|
return [
|
||||||
superCtor.styles || [],
|
superCtor.styles || [],
|
||||||
css`
|
css`
|
||||||
|
:host {
|
||||||
|
--tooltip-arrow-width: 12px;
|
||||||
|
--tooltip-arrow-height: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
.arrow svg {
|
.arrow svg {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.arrow {
|
.arrow {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
--tooltip-arrow-width: 12px;
|
|
||||||
--tooltip-arrow-height: 8px;
|
|
||||||
width: var(--tooltip-arrow-width);
|
width: var(--tooltip-arrow-width);
|
||||||
height: var(--tooltip-arrow-height);
|
height: var(--tooltip-arrow-height);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue