change(tracker): Add IDs to elements in the assist overlay to allow them to be targeted with CSS
This commit is contained in:
parent
8d885c7041
commit
cd2535b2c5
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue