mirror of
https://github.com/janishutz/fundamentals-of-webengineering.git
synced 2025-11-25 13:54:25 +00:00
Some CSS work
This commit is contained in:
@@ -64,6 +64,7 @@ export const ref = <T>( elements: HTMLElement[], data: T ): Ref<T> => {
|
||||
} );
|
||||
|
||||
conditionalClasses.forEach( el => {
|
||||
// FIXME: Use add and remove!
|
||||
el.element.classList.value = el.predicate( data ) ? el.onTrue : el.onFalse;
|
||||
} );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user