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

feat(core): automatically include field-label (for input/textarea) #293

Merged
merged 1 commit into from
Feb 10, 2021

Conversation

josokinas
Copy link
Contributor

Purpose

FieldLabel is not included within Input and Textarea automatically when children are passed (talking about React components here), so CSS should also include styling for such automatically.

Approach

Automatically include (only once) CSS for "field-label: component.

Testing

Locally, on Storybook.

Risks

CSS includes also in case label is not used.

@josokinas josokinas added this to the 1.1.0 milestone Feb 10, 2021
@josokinas josokinas requested a review from rabelloo February 10, 2021 14:13
@josokinas josokinas self-assigned this Feb 10, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Feb 10, 2021

🎊 PR Preview 6d0f6bb has been successfully built and deployed to https://onfido-castor-preview-pr-293.surge.sh

🕐 Build time: 152.982s

🤖 By surge-preview

Copy link
Contributor

@rabelloo rabelloo left a comment

Choose a reason for hiding this comment

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

A nice improvement, in my opinion a safe assumption that most Inputs and Textareas will contain a label

packages/core/src/components/index.scss Outdated Show resolved Hide resolved
@josokinas josokinas force-pushed the feat/auto-include-field-label branch from 790c8ab to 6d0f6bb Compare February 10, 2021 15:31
@josokinas josokinas merged commit c9984f6 into main Feb 10, 2021
@josokinas josokinas deleted the feat/auto-include-field-label branch February 10, 2021 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants