-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(html-view): Additional properties for HtmlView component #8207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- 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.
} from "./html-view-common"; | ||
import { ios } from "../../utils/utils"; | ||
|
||
export * from "./html-view-common"; | ||
|
||
const majorVersion = ios.MajorVersion; | ||
|
||
function uiColorToHex(uiColor: UIColor): string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be better if you move the function in the nativescript-core/color/color-common.ts file and use it from there, as it seems like something that can be used in other places as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made it a static method in Color
class.
@xuhcc I've added the new properties in the e2e test by committing directly in your branch |
PR Checklist
What is the current behavior?
What is the new behavior?
color
CSS property.link-color
CSS property.font-family
andfont-size
CSS properties.Implements #1266
Related: #1268 #4358 #4746
BREAKING CHANGES:
The appearance of
HtmlView
component may change in existing apps.