@@ -441,13 +441,7 @@ function renderBiasControls(container, device, values, onChange) {
441441
442442 const labelEl = document . createElement ( 'label' ) ;
443443 labelEl . textContent = `P(${ labels [ i ] } )` ;
444- labelEl . style . marginTop = '0px' ;
445- labelEl . style . marginBottom = '0px' ;
446- labelEl . style . paddingLeft = '0px' ;
447- labelEl . style . paddingRight = '5px' ;
448- labelEl . style . fontSize = 'var(--UI-Typography-fontSize-sm)' ;
449- labelEl . style . fontWeight = 'var(--UI-Typography-fontWeight-medium)' ;
450- labelEl . style . color = 'var(--Colors-Text-Body-Strongest, #0A1122)' ;
444+ labelEl . classList . add ( 'pl-slider-label' ) ;
451445
452446 const sliderContainer = document . createElement ( 'div' ) ;
453447 wrapper . appendChild ( labelEl ) ;
@@ -510,14 +504,8 @@ function renderBiasControls(container, device, values, onChange) {
510504 wrapper . style . gap = 'var(--UI-Spacing-spacing-sm)' ;
511505
512506 const labelEl = document . createElement ( 'label' ) ;
513- labelEl . style . marginTop = '0px' ;
514- labelEl . style . marginBottom = '0px' ;
515- labelEl . style . paddingLeft = '0px' ;
516- labelEl . style . paddingRight = '5px' ;
517507 labelEl . textContent = `P(${ faceNumber } )` ;
518- labelEl . style . fontSize = 'var(--UI-Typography-fontSize-sm)' ;
519- labelEl . style . fontWeight = 'var(--UI-Typography-fontWeight-medium)' ;
520- labelEl . style . color = 'var(--Colors-Text-Body-Strongest, #0A1122)' ;
508+ labelEl . classList . add ( 'pl-slider-label' ) ;
521509
522510 const sliderContainer = document . createElement ( 'div' ) ;
523511 wrapper . appendChild ( labelEl ) ;
@@ -578,9 +566,7 @@ function renderBiasControls(container, device, values, onChange) {
578566
579567 const labelEl = document . createElement ( 'label' ) ;
580568 labelEl . textContent = 'Skew' ;
581- labelEl . style . fontSize = 'var(--UI-Typography-fontSize-sm)' ;
582- labelEl . style . fontWeight = 'var(--UI-Typography-fontWeight-medium)' ;
583- labelEl . style . color = 'var(--Colors-Text-Body-Strongest, #0A1122)' ;
569+ labelEl . classList . add ( 'pl-slider-label' ) ;
584570
585571 const sliderContainer = document . createElement ( 'div' ) ;
586572 wrapper . appendChild ( labelEl ) ;
@@ -616,13 +602,21 @@ function renderEventOptions() {
616602 option . className = 'pl-event-option' ;
617603
618604 const label = document . createElement ( 'label' ) ;
619- label . className = 'pl-event-label' ;
605+ label . className = 'input-checkbox input-checkbox-small' ;
606+ label . style . flex = '1' ;
620607
621608 const checkbox = document . createElement ( 'input' ) ;
622609 checkbox . type = 'checkbox' ;
623610 checkbox . checked = selectedLabels . has ( def . labels [ i ] ) ;
624611
612+ const box = document . createElement ( 'span' ) ;
613+ box . className = 'input-checkbox-box' ;
614+
615+ const checkmark = document . createElement ( 'span' ) ;
616+ checkmark . className = 'input-checkbox-checkmark' ;
617+
625618 const title = document . createElement ( 'span' ) ;
619+ title . className = 'input-checkbox-label' ;
626620 title . textContent = def . labels [ i ] ;
627621
628622 checkbox . addEventListener ( 'change' , ( ) => {
@@ -638,7 +632,8 @@ function renderEventOptions() {
638632 applySectionVisibility ( state ) ;
639633 } ) ;
640634
641- label . append ( checkbox , title ) ;
635+ box . appendChild ( checkmark ) ;
636+ label . append ( checkbox , box , title ) ;
642637
643638 const p = document . createElement ( 'div' ) ;
644639 p . className = 'pl-event-prob' ;
0 commit comments