We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 031cd79 commit adab92eCopy full SHA for adab92e
1 file changed
src/widgets/peopleSearch.ts
@@ -50,8 +50,8 @@ export const createPeopleSearch = function (
50
51
// Add responsive styles for people search
52
const styleId = 'people-search-styles'
53
- if (!document.getElementById(styleId)) {
54
- const style = document.createElement('style')
+ if (!dom.getElementById(styleId)) {
+ const style = dom.createElement('style')
55
style.id = styleId
56
style.textContent = `
57
.people-search-input {
@@ -72,7 +72,8 @@ export const createPeopleSearch = function (
72
}
73
74
`
75
- document.head.appendChild(style)
+ const styleContainer = dom.head || dom.documentElement || dom.body
76
+ styleContainer?.appendChild(style)
77
78
79
const searchForm = dom.createElement('form')
0 commit comments