mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-11 09:04:51 +02:00
cleanup classes when backgrounds are synced
This commit is contained in:
@@ -716,6 +716,10 @@
|
|||||||
|
|
||||||
container.appendChild( element );
|
container.appendChild( element );
|
||||||
|
|
||||||
|
// If backgrounds are being recreated, clear old classes
|
||||||
|
slide.classList.remove( 'has-dark-background' );
|
||||||
|
slide.classList.remove( 'has-light-background' );
|
||||||
|
|
||||||
// If this slide has a background color, add a class that
|
// If this slide has a background color, add a class that
|
||||||
// signals if it is light or dark. If the slide has no background
|
// signals if it is light or dark. If the slide has no background
|
||||||
// color, no class will be set
|
// color, no class will be set
|
||||||
|
Reference in New Issue
Block a user