is-light-background -> has-light-background, doesn't apply to background itself
This commit is contained in:
1 parent
5e585ddbf2
commit
2479883d3c
2 files changed
+3
-3
No files matched your search
+1
-2
@@ -720,8 +720,7 @@
|
||||
// signals if it is light
|
||||
var computedBackgroundColor = window.getComputedStyle( element ).backgroundColor;
|
||||
if( computedBackgroundColor && colorBrightness( computedBackgroundColor ) > 128 ) {
|
||||
slide.classList.add( 'is-background-light' );
|
||||
element.classList.add( 'is-background-light' );
|
||||
slide.classList.add( 'has-light-background' );
|
||||
}
|
||||
|
||||
return element;
|
||||
|
||||
Reference in new issue
Block a user