diff --git a/docs/Text.md b/docs/Text.md index dfed9b145..d1039fc74 100644 --- a/docs/Text.md +++ b/docs/Text.md @@ -83,7 +83,7 @@ The `` element is special relative to layout: everything inside is no long ## Limited Style Inheritance -On the web, the usual way to set a font family and size for the entire document is to write: +On the web, the usual way to set a font family and size for the entire document is to take advantage of inherited CSS properties like so: ```css /* CSS, *not* React Native */ @@ -94,7 +94,7 @@ html { } ``` -When the browser is trying to render a text node, it's going to go all the way up to the root element of the tree and find an element with a `font-size` attribute. An unexpected property of this system is that **any** node can have `font-size` attribute, including a `
`. This was designed for convenience, even though not really semantically correct. +All elements in the document will inherit this font unless they or one of their parents specifies a new rule. In React Native, we are more strict about it: **you must wrap all the text nodes inside of a `` component**; you cannot have a text node directly under a ``.