mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 18:12:09 +08:00
13 lines
418 B
TypeScript
13 lines
418 B
TypeScript
import { Trace } from '../../trace';
|
|
|
|
export function cleanupImportantFlags(value: string, propertyName: string) {
|
|
const index = value?.indexOf('!important');
|
|
if (index >= 0) {
|
|
if (Trace.isEnabled()) {
|
|
Trace.write(`The !important css rule is currently not supported. Property: ${propertyName}`, Trace.categories.Style, Trace.messageType.warn);
|
|
}
|
|
return value.substring(0, index).trim();
|
|
}
|
|
return value;
|
|
}
|