Skip to content
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

Textarea: Adding implementation #22096

Merged

Conversation

sopranopillow
Copy link
Contributor

@sopranopillow sopranopillow commented Mar 14, 2022

PR Summary

This PR adds the implementation of Textarea with its styling completed. Tests, and bundle fixtures will be added in separate PRs.

Related Issue(s)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 14, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 6a6dc73:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@fabricteam
Copy link
Collaborator

fabricteam commented Mar 14, 2022

📊 Bundle size report

🤖 This report was generated against a8d3d706c64077e7fd9465ab90648d2e0bf8eb82

@size-auditor
Copy link

size-auditor bot commented Mar 14, 2022

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: e6fc4828bde76695a598636a94bc28aac26f3d47 (build)

@sopranopillow sopranopillow marked this pull request as ready for review March 15, 2022 18:22
@sopranopillow sopranopillow requested a review from a team as a code owner March 15, 2022 18:22
@sopranopillow sopranopillow requested a review from a team as a code owner March 17, 2022 23:22
height: textAreaHeight.small,
...shorthands.padding(
'0',
`calc(${spacingTokens.horizontal.mNudge} + ${spacingTokens.horizontal.xss})`,
Copy link
Contributor

@smhigley smhigley Mar 18, 2022

Choose a reason for hiding this comment

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

Would it make sense to create a token like this:

textAreaHorizontalPadding = {
 small: smallspacingTokens.horizontal.mNudge + spacingTokens.horizontal.xss`,
 medium: etc.,
 large: etc.
}

in this file? That way we don't need the browser to run calc for us.

Copy link
Contributor

Choose a reason for hiding this comment

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

If the plan is for tokens to ultimately come from react-theme I think we'll need to use calc since those tokens resolve to CSS vars.

Copy link
Member

Choose a reason for hiding this comment

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

Do you know if there's a plan any time soon to add the spacing tokens to the theme? At least to me it seems like they obviously should be there, but they're not for some reason.

Copy link
Member

Choose a reason for hiding this comment

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

@miroslavstastny for spacing tokens in theme question

@sopranopillow sopranopillow changed the title TextArea: Adding implementation. Textarea: Adding implementation. Mar 30, 2022
@khmakoto khmakoto changed the title Textarea: Adding implementation. Textarea: Adding implementation Mar 30, 2022
@sopranopillow
Copy link
Contributor Author

Making a note that TextArea will be renamed to Textarea in a follow-up PR.

@sopranopillow sopranopillow merged commit bc4094d into microsoft:master Mar 31, 2022
@sopranopillow sopranopillow deleted the react-textarea-implementation branch March 31, 2022 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

8 participants