@@ -30,8 +30,8 @@ const Components: Library = {
30
30
function shiftColor ( col : string , amt : number ) : string {
31
31
const num = parseInt ( col , 16 )
32
32
const r = ( num >> 16 ) + amt
33
- const b = ( ( num >> 8 ) & 0x00FF ) + amt
34
- const g = ( num & 0x0000FF ) + amt
33
+ const b = ( ( num >> 8 ) & 0x00_FF ) + amt
34
+ const g = ( num & 0x00_00_FF ) + amt
35
35
const newColor = g | ( b << 8 ) | ( r << 16 )
36
36
return newColor . toString ( 16 )
37
37
}
@@ -52,7 +52,7 @@ const Components: Library = {
52
52
button . style ( {
53
53
background : 'var(--primary)' ,
54
54
color : 'var(--base)' ,
55
- border : ' 1px solid #' + shiftColor ( document . documentElement . style . getPropertyValue ( '--primary' ) . replace ( '#' , '' ) , - 40 ) + ''
55
+ border : ` 1px solid #${ shiftColor ( document . documentElement . style . getPropertyValue ( '--primary' ) . replace ( '#' , '' ) , - 40 ) } `
56
56
} )
57
57
}
58
58
return button
@@ -77,11 +77,9 @@ const Components: Library = {
77
77
'border-radius' : '5px' ,
78
78
padding : '2.5px' ,
79
79
background : 'var(--base)' ,
80
- border : '1px solid const (--surface-1)'
80
+ border : '1px solid var (--surface-1)'
81
81
} ) . appendMany (
82
- ...options . map ( ( option ) => {
83
- return new HTML ( 'option' ) . text ( option )
84
- } )
82
+ ...options . map ( ( option ) => new HTML ( 'option' ) . text ( option ) )
85
83
)
86
84
return dropdown
87
85
}
0 commit comments