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

refactor(inputfield): use inputlabel and re-export as subcomp #1699

Merged
merged 2 commits into from
Jul 18, 2023

Conversation

jinlee93
Copy link
Contributor

@jinlee93 jinlee93 commented Jul 18, 2023

EFI-1228

Summary:

  • after some discussion we're keeping Input component as its not a subcomponent for just InputField and possibly has use as utility component in other areas
  • using InputLabel component over Label component be in line with Checkbox and Radio
  • aligns closer to the mocks for font

Test Plan:

  • CI tests / new tests are not applicable
    • no visual regression

@jinlee93 jinlee93 requested a review from a team July 18, 2023 20:50
@jinlee93 jinlee93 force-pushed the jlee/mergeTogetherInputFieldComponents branch from 5da63be to 789b986 Compare July 18, 2023 20:55
@codecov
Copy link

codecov bot commented Jul 18, 2023

Codecov Report

Merging #1699 (8cda134) into feature/EFI-1219 (95355e6) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@                 Coverage Diff                  @@
##           feature/EFI-1219    #1699      +/-   ##
====================================================
+ Coverage             92.76%   92.77%   +0.01%     
====================================================
  Files                   158      159       +1     
  Lines                  2779     2783       +4     
  Branches                716      717       +1     
====================================================
+ Hits                   2578     2582       +4     
  Misses                  184      184              
  Partials                 17       17              
Impacted Files Coverage Δ
src/components/InputField/InputField.tsx 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@jinlee93 jinlee93 force-pushed the jlee/mergeTogetherInputFieldComponents branch from 789b986 to 54149ad Compare July 18, 2023 21:11
@jinlee93
Copy link
Contributor Author

Also filed EFI-1250 for similar treatment for TextArea

Copy link
Contributor

@booc0mtaco booc0mtaco left a comment

Choose a reason for hiding this comment

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

Good stuff. Less is more 💯

src/components/InputField/InputField.module.css Outdated Show resolved Hide resolved
@jinlee93 jinlee93 merged commit 748108d into feature/EFI-1219 Jul 18, 2023
@jinlee93 jinlee93 deleted the jlee/mergeTogetherInputFieldComponents branch July 18, 2023 23:08
booc0mtaco pushed a commit that referenced this pull request Jul 19, 2023
* refactor(inputfield): use inputlabel and re-export as subcomp

* docs(inputfield): add comment spacing
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