(el: HTMLDivElement)
| 852 | // Adds the styles and sets the font size variable on portal menu elements, |
| 853 | // since they are outside the main panel container |
| 854 | const setupPortal = (el: HTMLDivElement) => { |
| 855 | attachStyles(el) |
| 856 | const computedStyle = getComputedStyle(containerRef) |
| 857 | const variable = computedStyle.getPropertyValue('--tsqd-font-size') |
| 858 | el.style.setProperty('--tsqd-font-size', variable) |
| 859 | } |
| 860 | return ( |
| 861 | <> |
| 862 | <div |
no test coverage detected