mirror of
https://github.com/rio-labs/rio.git
synced 2026-01-06 05:09:43 -06:00
simplified switcheroo application
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { applyColorSet, bumpThemeContext } from '../designApplication';
|
||||
import { applyColorSet } from '../designApplication';
|
||||
import { ColorSet } from '../dataModels';
|
||||
import { ComponentBase, ComponentState } from './componentBase';
|
||||
|
||||
@@ -45,16 +45,9 @@ export class ProgressCircleComponent extends ComponentBase {
|
||||
}
|
||||
|
||||
// Apply the color
|
||||
if (deltaState.color === 'keep') {
|
||||
bumpThemeContext(
|
||||
this.element,
|
||||
this.element.firstElementChild as HTMLElement
|
||||
);
|
||||
} else if (deltaState.color !== undefined) {
|
||||
applyColorSet(
|
||||
this.element.firstElementChild as HTMLElement,
|
||||
deltaState.color
|
||||
);
|
||||
}
|
||||
applyColorSet(
|
||||
this.element.firstElementChild as HTMLElement,
|
||||
deltaState.color === 'keep' ? 'bump' : deltaState.color
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user