(options: FeedbackInternalOptions)
| 198 | * Get the shadow root where we will append css |
| 199 | */ |
| 200 | const _createShadow = (options: FeedbackInternalOptions): ShadowRoot => { |
| 201 | if (!_shadow) { |
| 202 | const host = DOCUMENT.createElement('div'); |
| 203 | host.id = String(options.id); |
| 204 | DOCUMENT.body.appendChild(host); |
| 205 | |
| 206 | _shadow = host.attachShadow({ mode: 'open' }); |
| 207 | _mainStyle = createMainStyles(options); |
| 208 | _shadow.appendChild(_mainStyle); |
| 209 | } |
| 210 | return _shadow; |
| 211 | }; |
| 212 | |
| 213 | const _loadAndRenderDialog = async ( |
| 214 | options: FeedbackInternalOptions, |
no test coverage detected