@@ -30,8 +30,8 @@ const Components: Library = {
3030 function shiftColor ( col : string , amt : number ) : string {
3131 const num = parseInt ( col , 16 )
3232 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
3535 const newColor = g | ( b << 8 ) | ( r << 16 )
3636 return newColor . toString ( 16 )
3737 }
@@ -52,7 +52,7 @@ const Components: Library = {
5252 button . style ( {
5353 background : 'var(--primary)' ,
5454 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 ) } `
5656 } )
5757 }
5858 return button
@@ -77,11 +77,9 @@ const Components: Library = {
7777 'border-radius' : '5px' ,
7878 padding : '2.5px' ,
7979 background : 'var(--base)' ,
80- border : '1px solid const (--surface-1)'
80+ border : '1px solid var (--surface-1)'
8181 } ) . appendMany (
82- ...options . map ( ( option ) => {
83- return new HTML ( 'option' ) . text ( option )
84- } )
82+ ...options . map ( ( option ) => new HTML ( 'option' ) . text ( option ) )
8583 )
8684 return dropdown
8785 }
0 commit comments