(el: HTMLDivElement)
| 997 | // Sets the Font Size variable on portal menu elements since they will be outside |
| 998 | // the main panel container |
| 999 | const setComputedVariables = (el: HTMLDivElement) => { |
| 1000 | const computedStyle = getComputedStyle(containerRef) |
| 1001 | const variable = computedStyle.getPropertyValue('--tsqd-font-size') |
| 1002 | el.style.setProperty('--tsqd-font-size', variable) |
| 1003 | } |
| 1004 | return ( |
| 1005 | <> |
| 1006 | <div |