Skip to content

Conversation

@chazdean
Copy link
Contributor

@chazdean chazdean commented Jul 21, 2022

WHY are these changes introduced?

Fixes #6563

WHAT is this pull request doing?

  • Creates a README in polaris-react for the new Text component
  • Adds Text (Alpha) to the list of components in polaris.shopify.com
  • Adds a Text component page with examples to polaris.shopify.com

Heads-Up!

🛠 The Text component examples currently load without styling as the global style-guide used for polaris.shopify.com has not yet been updated and won't be until the release of the new Text component 🛠

Screen Shot 2022-07-21 at 10 29 49 AM

How to 🎩

🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines

Copy-paste this code in playground/Playground.tsx:
import React from 'react';
import {Page} from '../src';

export function Playground() {
  return (
    <Page title="Playground">
      {/* Add the code you want to test in here */}
    </Page>
  );
}

🎩 checklist

@chazdean chazdean self-assigned this Jul 21, 2022
@chazdean chazdean requested review from aveline, laurkim and sarahill July 21, 2022 15:05
@chazdean chazdean marked this pull request as ready for review July 21, 2022 15:06
@github-actions
Copy link
Contributor

github-actions bot commented Jul 21, 2022

size-limit report 📦

Path Size
polaris-react-cjs 198.78 KB (0%)
polaris-react-esm 128.35 KB (0%)
polaris-react-esnext 182.99 KB (0%)
polaris-react-css 41.1 KB (0%)

Comment on lines 1 to +7
.Code {
background-color: var(--p-surface-subdued);
border-radius: var(--p-border-radius-base);
border: var(--p-border-base);
background-color: var(--p-surface-neutral);
border-radius: var(--p-border-radius-05);
font-family: var(--p-font-family-mono);
font-size: 0.9em;
padding: 0 var(--p-space-1);
font-size: 0.85em;
font-weight: var(--p-font-weight-medium);
padding: var(--p-space-025) var(--p-space-1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these changes be in this PR or should we just have changes for the site?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It feels like they shouldn't be 🤔 What do you think @laurkim?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes shouldn't be, I believe they are part of #6700
Not sure why they snuck in here.

Comment on lines +1 to +14
import { Text } from "@shopify/polaris";
import React from "react";
import { withPolarisExample } from "../../components/PolarisExamplePage";

function TextExample() {
return (
<Text variant="bodyLg" as="p">
Shopify POS is the easiest way to sell your products in person. Available
for iPad, iPhone, and Android.
</Text>
);
}

export default withPolarisExample(TextExample);
Copy link
Member

@alex-page alex-page Jul 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One piece of feedback I have is that "we have too many examples everywhere". I wonder if we could instead of doing an example for each prop, render a couple of useful elements together. @sarahill @laurkim @aveline @chazdean @nayeob-kim

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's leave this as is for now so we can reconcile it with the mapping guide branch which also has examples. Then we think on how to best approach them.

@chazdean chazdean merged commit 7512832 into typography-foundations-text-component Jul 25, 2022
@chazdean chazdean deleted the chaz/add-text-component-readme branch July 25, 2022 16:53
laurkim added a commit that referenced this pull request Jul 29, 2022
* Create README.md

* Add new Text component page

* Add Text component examples

* Add changeset

* Use existing changeset

* Update Syntax

* [Typography foundations] Update `<InlineCode>` styling for accessibility (#6700)

* [Typography foundations] Add fontweight to Text variants (#6698)

* Update polaris-readme-loader.js

* Update README.md

* Update text.md

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris.shopify.com/src/data/components.json

Co-authored-by: Lo Kim <[email protected]>

* Update component example titles

* Update component example file names

* [Typography foundations] Refactor `display` variants to `heading2xl-4xl` (#6735)

* Create README.md

* Add new Text component page

* Add Text component examples

* Add changeset

* Use existing changeset

* Update Syntax

* Update polaris-readme-loader.js

* Update README.md

* Update text.md

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris.shopify.com/src/data/components.json

Co-authored-by: Lo Kim <[email protected]>

* Update component example titles

* Update component example file names

* Refactor `display` variants to `heading2xl-4xl`

* Update polaris.shopify.com/src/pages/examples/text-heading-4xl.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-3xl.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-2xl.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-extra-large.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-large.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-medium.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-small.tsx

Co-authored-by: Alex Page <[email protected]>

* Remove Text Display examples

Co-authored-by: Lo Kim <[email protected]>
Co-authored-by: Alex Page <[email protected]>
laurkim added a commit that referenced this pull request Jul 29, 2022
* Create README.md

* Add new Text component page

* Add Text component examples

* Add changeset

* Use existing changeset

* Update Syntax

* [Typography foundations] Update `<InlineCode>` styling for accessibility (#6700)

* [Typography foundations] Add fontweight to Text variants (#6698)

* Update polaris-readme-loader.js

* Update README.md

* Update text.md

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris.shopify.com/src/data/components.json

Co-authored-by: Lo Kim <[email protected]>

* Update component example titles

* Update component example file names

* [Typography foundations] Refactor `display` variants to `heading2xl-4xl` (#6735)

* Create README.md

* Add new Text component page

* Add Text component examples

* Add changeset

* Use existing changeset

* Update Syntax

* Update polaris-readme-loader.js

* Update README.md

* Update text.md

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris.shopify.com/src/data/components.json

Co-authored-by: Lo Kim <[email protected]>

* Update component example titles

* Update component example file names

* Refactor `display` variants to `heading2xl-4xl`

* Update polaris.shopify.com/src/pages/examples/text-heading-4xl.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-3xl.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-2xl.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-extra-large.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-large.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-medium.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-small.tsx

Co-authored-by: Alex Page <[email protected]>

* Remove Text Display examples

Co-authored-by: Lo Kim <[email protected]>
Co-authored-by: Alex Page <[email protected]>
laurkim added a commit that referenced this pull request Jul 29, 2022
* [Typography foundations] Add Text component (#6521)

* [Typography foundations] Add Text component

Co-authored-by: Aveline Thelen <[email protected]>

* [Typography foundations] Add changeset

* [Typography foundations] Remove variant mapping

We expect users to determine element type even if `variant` is passed in, so as to decouple styling from element type.

* [Typography foundations] Clean up exports

* [Typography foundations] Add color options

* [Typography foundations] Add defaults for `as`/`variant` and make `as` required

* [Typography foundations] Add support for `visuallyHidden` prop

* [Typography foundations] Add prop descriptions

* [Typography foundations] Remove `a` as element type

* [Typography foundations] Make `variant` required prop

* [Typography foundations] Rename colors to align with tokens

Co-authored-by: Aveline Thelen <[email protected]>

* [Typography foundations] Update type scale and font size tokens (#6574)

* Update type scale and font size tokens

* Fix font size values

* Update line-height tokens

* Update token names

* Rename typography group to font

* Update `font` token group name

* [Typography foundations] Add support for code blocks with `InlineCode` component (#6623)

* [Typography foundations] Add support for `monospaced` variant and `InlineCode` component

* [Typography foundations] Update changeset

* [Typography foundations] Use new font tokens

* [Typography foundations] Remove InlineCode component

* [Typography foundations] Add `code` variant to `Text`

* [Typography foundations] Remove `text-style-body` mixin from AppProvider

The mixin was causing font-size issues for the Text `code` variation on Safari.

* [Typography foundations] Add InlineCode component and remove non-typographic styling from Text

Co-authored-by: Alex Page <[email protected]>

* [Typography foundations] Remove style changes from AppProvider

* Update changeset

* [Typography foundations] Update font-size in InlineCode

Co-authored-by: Alex Page <[email protected]>

* Update changeset

* [Typography foundations] Update `<InlineCode>` styling for accessibility (#6700)

* [Typography foundations] Add fontweight to Text variants (#6698)

* [Typography foundations] Refactor `display` variants to `heading2xl-4xl` (#6735)

* [Typography foundations] Add `README` for new Text component (#6715)

* Create README.md

* Add new Text component page

* Add Text component examples

* Add changeset

* Use existing changeset

* Update Syntax

* [Typography foundations] Update `<InlineCode>` styling for accessibility (#6700)

* [Typography foundations] Add fontweight to Text variants (#6698)

* Update polaris-readme-loader.js

* Update README.md

* Update text.md

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris.shopify.com/src/data/components.json

Co-authored-by: Lo Kim <[email protected]>

* Update component example titles

* Update component example file names

* [Typography foundations] Refactor `display` variants to `heading2xl-4xl` (#6735)

* Create README.md

* Add new Text component page

* Add Text component examples

* Add changeset

* Use existing changeset

* Update Syntax

* Update polaris-readme-loader.js

* Update README.md

* Update text.md

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris.shopify.com/src/data/components.json

Co-authored-by: Lo Kim <[email protected]>

* Update component example titles

* Update component example file names

* Refactor `display` variants to `heading2xl-4xl`

* Update polaris.shopify.com/src/pages/examples/text-heading-4xl.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-3xl.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-2xl.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-extra-large.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-large.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-medium.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-small.tsx

Co-authored-by: Alex Page <[email protected]>

* Remove Text Display examples

Co-authored-by: Lo Kim <[email protected]>
Co-authored-by: Alex Page <[email protected]>

* [Typography foundations] Add tests for `Text` and `InlineCode` components (#6747)

* [Typography foundations] Add tests for `Text` component

* [Typography foundations] Add tests for `InlineCode` component

* Add mappings for `DisplayText` to `Text` component `README` (#6702)

* Update `README` with mapping guidance

* Move text mappings to styleguide

* Add `VisuallyHidden` to `Text` mapping

Co-authored-by: Alex Page <[email protected]>

* Group text examples on styleguide (#6800)

* Group `Text` heading examples

* Group `Text` body examples

* Group `Text` align examples

* Group `font-weight` examples

* Group `color` text examples

* Update polaris.shopify.com/content/components/text.md

Co-authored-by: Sara Hill <[email protected]>

* Update polaris.shopify.com/content/components/text.md

Co-authored-by: Sara Hill <[email protected]>

* Update text color examples

* Update text weight examples order

Co-authored-by: Sara Hill <[email protected]>

* [Typography foundations] Feat/Update Text component to support Labels (#6797)

* Update Text.tsx

* Remove forced 'block' styling

* Delete changeset

* Resolve merge conflicts

* Fix references to `font` tokens

* Update font tokens in styleguide

* [Typography foundations] Fix outdated font size token

Co-authored-by: Aveline Thelen <[email protected]>
Co-authored-by: aveline <[email protected]>
Co-authored-by: Alex Page <[email protected]>
Co-authored-by: Chaz Dean <[email protected]>
Co-authored-by: Sara Hill <[email protected]>
laurkim added a commit that referenced this pull request Aug 23, 2022
* [Typography foundations] Add Text component (#6521)

* [Typography foundations] Add Text component

Co-authored-by: Aveline Thelen <[email protected]>

* [Typography foundations] Add changeset

* [Typography foundations] Remove variant mapping

We expect users to determine element type even if `variant` is passed in, so as to decouple styling from element type.

* [Typography foundations] Clean up exports

* [Typography foundations] Add color options

* [Typography foundations] Add defaults for `as`/`variant` and make `as` required

* [Typography foundations] Add support for `visuallyHidden` prop

* [Typography foundations] Add prop descriptions

* [Typography foundations] Remove `a` as element type

* [Typography foundations] Make `variant` required prop

* [Typography foundations] Rename colors to align with tokens

Co-authored-by: Aveline Thelen <[email protected]>

* [Typography foundations] Update type scale and font size tokens (#6574)

* Update type scale and font size tokens

* Fix font size values

* Update line-height tokens

* Update token names

* Rename typography group to font

* Update `font` token group name

* [Typography foundations] Add support for code blocks with `InlineCode` component (#6623)

* [Typography foundations] Add support for `monospaced` variant and `InlineCode` component

* [Typography foundations] Update changeset

* [Typography foundations] Use new font tokens

* [Typography foundations] Remove InlineCode component

* [Typography foundations] Add `code` variant to `Text`

* [Typography foundations] Remove `text-style-body` mixin from AppProvider

The mixin was causing font-size issues for the Text `code` variation on Safari.

* [Typography foundations] Add InlineCode component and remove non-typographic styling from Text

Co-authored-by: Alex Page <[email protected]>

* [Typography foundations] Remove style changes from AppProvider

* Update changeset

* [Typography foundations] Update font-size in InlineCode

Co-authored-by: Alex Page <[email protected]>

* Update changeset

* [Typography foundations] Update `<InlineCode>` styling for accessibility (#6700)

* [Typography foundations] Add fontweight to Text variants (#6698)

* [Typography foundations] Refactor `display` variants to `heading2xl-4xl` (#6735)

* [Typography foundations] Add `README` for new Text component (#6715)

* Create README.md

* Add new Text component page

* Add Text component examples

* Add changeset

* Use existing changeset

* Update Syntax

* [Typography foundations] Update `<InlineCode>` styling for accessibility (#6700)

* [Typography foundations] Add fontweight to Text variants (#6698)

* Update polaris-readme-loader.js

* Update README.md

* Update text.md

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris.shopify.com/src/data/components.json

Co-authored-by: Lo Kim <[email protected]>

* Update component example titles

* Update component example file names

* [Typography foundations] Refactor `display` variants to `heading2xl-4xl` (#6735)

* Create README.md

* Add new Text component page

* Add Text component examples

* Add changeset

* Use existing changeset

* Update Syntax

* Update polaris-readme-loader.js

* Update README.md

* Update text.md

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris-react/src/components/Text/README.md

Co-authored-by: Lo Kim <[email protected]>

* Update polaris.shopify.com/src/data/components.json

Co-authored-by: Lo Kim <[email protected]>

* Update component example titles

* Update component example file names

* Refactor `display` variants to `heading2xl-4xl`

* Update polaris.shopify.com/src/pages/examples/text-heading-4xl.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-3xl.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-2xl.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-extra-large.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-large.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-medium.tsx

Co-authored-by: Alex Page <[email protected]>

* Update polaris.shopify.com/src/pages/examples/text-heading-small.tsx

Co-authored-by: Alex Page <[email protected]>

* Remove Text Display examples

Co-authored-by: Lo Kim <[email protected]>
Co-authored-by: Alex Page <[email protected]>

* [Typography foundations] Add tests for `Text` and `InlineCode` components (#6747)

* [Typography foundations] Add tests for `Text` component

* [Typography foundations] Add tests for `InlineCode` component

* Add mappings for `DisplayText` to `Text` component `README` (#6702)

* Update `README` with mapping guidance

* Move text mappings to styleguide

* Add `VisuallyHidden` to `Text` mapping

Co-authored-by: Alex Page <[email protected]>

* Group text examples on styleguide (#6800)

* Group `Text` heading examples

* Group `Text` body examples

* Group `Text` align examples

* Group `font-weight` examples

* Group `color` text examples

* Update polaris.shopify.com/content/components/text.md

Co-authored-by: Sara Hill <[email protected]>

* Update polaris.shopify.com/content/components/text.md

Co-authored-by: Sara Hill <[email protected]>

* Update text color examples

* Update text weight examples order

Co-authored-by: Sara Hill <[email protected]>

* [Typography foundations] Feat/Update Text component to support Labels (#6797)

* Update Text.tsx

* Remove forced 'block' styling

* Delete changeset

* Resolve merge conflicts

* Fix references to `font` tokens

* Update font tokens in styleguide

* [Typography foundations] Fix outdated font size token

Co-authored-by: Aveline Thelen <[email protected]>
Co-authored-by: aveline <[email protected]>
Co-authored-by: Alex Page <[email protected]>
Co-authored-by: Chaz Dean <[email protected]>
Co-authored-by: Sara Hill <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants