mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat(html-view): Additional properties for HtmlView component (#8207)
* feat(html-view): Additional properties for HtmlView component - Allow to set text color with `color` CSS property. - Allow to set link color with `link-color` CSS property. - Allow to set font attributes with `font-family` and `font-size` CSS properties. - Make text selectable on Android by default (for consistency with IOS). - Remove extra padding on IOS. * refactor: Move uiColorToHex function to nativescript-core/color module * test: adding test for new HtmlView css properties Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
This commit is contained in:
committed by
Vasil Trifonov
parent
3c340b42dc
commit
9217094a8e
@@ -413,6 +413,7 @@ export class Color {
|
||||
public b: number;
|
||||
public equals(value: Color): boolean;
|
||||
public static equals(value1: Color, value2: Color): boolean;
|
||||
public static fromIosColor(value: any /* UIColor */): Color;
|
||||
public g: number;
|
||||
public hex: string;
|
||||
ios: any /* UIColor */;
|
||||
|
||||
Reference in New Issue
Block a user