change(tracker): Add IDs to elements in the assist overlay to allow them to be targeted with CSS

This commit is contained in:
dgrah50 2022-09-23 10:19:39 +01:00 committed by Delirium
parent 8d885c7041
commit cd2535b2c5

View file

@ -50,16 +50,22 @@ export default class ConfirmWindow {
const wrapper = document.createElement('div')
const popup = document.createElement('div')
const p = document.createElement('p')
wrapper.id = 'openreplay-confirm-window-wrapper'
popup.id = 'openreplay-confirm-window-popup'
p.id = 'openreplay-confirm-window-p'
p.innerText = options.text
const buttons = document.createElement('div')
buttons.id = 'openreplay-confirm-window-buttons'
const confirmBtn = makeButton(options.confirmBtn, {
background: 'rgba(0, 167, 47, 1)',
color: 'white',
})
confirmBtn.id = 'openreplay-confirm-window-confirm-btn'
const declineBtn = makeButton(options.declineBtn, {
background: '#FFE9E9',
color: '#CC0000',
})
declineBtn.id = 'openreplay-confirm-window-decline-btn'
buttons.appendChild(confirmBtn)
buttons.appendChild(declineBtn)
popup.appendChild(p)