fix(ios): apply text color to HTMLView content (#10708)

This commit is contained in:
Dimitris-Rafail Katsampas
2025-02-23 00:17:47 +02:00
committed by GitHub
parent 8c4d7ca8be
commit 640db9529e
4 changed files with 67 additions and 38 deletions

View File

@@ -1,8 +1,6 @@
import { CssProperty } from '../core/properties';
import { View, CSSType } from '../core/view';
import { View, CSSType } from '../core/view';
import { booleanConverter } from '../core/view-base';
import { Property } from '../core/properties';
import { Style } from '../styling/style';
import { Color } from '../../color';
import { HtmlView as HtmlViewDefinition } from '.';
@@ -30,10 +28,9 @@ export const selectableProperty = new Property<HtmlViewBase, boolean>({
});
selectableProperty.register(HtmlViewBase);
export const linkColorProperty = new CssProperty<Style, Color>({
export const linkColorProperty = new Property<HtmlViewBase, Color>({
name: 'linkColor',
cssName: 'link-color',
equalityComparer: Color.equals,
valueConverter: (value) => new Color(value),
});
linkColorProperty.register(Style);
linkColorProperty.register(HtmlViewBase);