-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added a Text component * avoid exporting and documenting the mixin * fix storybook title * use kebab-case for file naming * added a _default story with all variants in the one story * update styles * update snapshots for react-native * git and case-sensitive renames are the worst on macos * git and case-sensitive renames are the worst on macos * rename tests in kebab-case * renamed snapshot files * d'oh forgot to fix the casing ina file * update the readme to include when to use the component * removed eslint disable rule * update native snapshots * delete unnecessary tests ready for visual regression testing * update storyshots * commit updates to generated file * renamed Text to __experimentalText * remove unnecessary files * Update formatting of typings Co-Authored-By: Grzegorz (Greg) Ziółkowski <[email protected]> * fix formatting * Mark stories as experimental Co-Authored-By: Grzegorz (Greg) Ziółkowski <[email protected]> * updated story snapshots Co-authored-by: Grzegorz (Greg) Ziółkowski <[email protected]>
- Loading branch information
1 parent
40cf95c
commit 023c43e
Showing
16 changed files
with
1,436 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Text | ||
|
||
A text component for styling text. | ||
|
||
## Usage | ||
|
||
```jsx | ||
import {Text} from '@wordpress/components'; | ||
|
||
const HeroPanel = () => ( | ||
<> | ||
<Text variant="title.large" as="h1">Hello World!</Text> | ||
<Text variant="body">Greetings to you!</Text> | ||
</> | ||
); | ||
``` | ||
|
||
> For most use-cases you can use this component instead of a `h1`, `h2`, `h3`, `h4`, `h5`, `h6` or `p`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export const fontFamily = `font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, | ||
Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const fontFamily = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './text.styles'; |
Oops, something went wrong.