File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -157,21 +157,21 @@ function annotateLine(line: HTMLElement) {
157157 if ( status == null ) {
158158 return ;
159159 }
160- const borderStylePrefix = "2px solid " ;
160+ const borderStylePrefix = "inset 2px 0 " ;
161161 if ( status === CoverageStatus . COVERED ) {
162- line . style . borderLeft = `${ borderStylePrefix } ${ colors . green } ` ;
162+ line . style . boxShadow = `${ borderStylePrefix } ${ colors . green } ` ;
163163 } else if ( status === CoverageStatus . UNCOVERED ) {
164- line . style . borderLeft = `${ borderStylePrefix } ${ colors . red } ` ;
164+ line . style . boxShadow = `${ borderStylePrefix } ${ colors . red } ` ;
165165 } else if ( status === CoverageStatus . PARTIAL ) {
166- line . style . borderLeft = `${ borderStylePrefix } ${ colors . yellow } ` ;
166+ line . style . boxShadow = `${ borderStylePrefix } ${ colors . yellow } ` ;
167167 } else {
168- line . style . borderLeft = "inherit" ;
168+ line . style . boxShadow = "inherit" ;
169169 }
170170}
171171
172172function clearAnimationAndAnnotations ( ) {
173173 clearAnimation ( lineSelector , annotateLine ) ;
174- clearAnnotations ( ( line : HTMLElement ) => ( line . style . borderLeft = "inherit" ) ) ;
174+ clearAnnotations ( ( line : HTMLElement ) => ( line . style . boxShadow = "inherit" ) ) ;
175175}
176176
177177main ( ) ;
You can’t perform that action at this time.
0 commit comments