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(theme): form field component #2238

Merged
merged 22 commits into from
Feb 27, 2020
Merged

feat(theme): form field component #2238

merged 22 commits into from
Feb 27, 2020

Conversation

yggg
Copy link
Contributor

@yggg yggg commented Feb 25, 2020

Please read and mark the following check list before creating a pull request:

Short description of what this resolves:

Closes #1999

@yggg yggg requested a review from Tibing February 25, 2020 06:41
@codecov
Copy link

codecov bot commented Feb 25, 2020

Codecov Report

Merging #2238 into master will decrease coverage by 0.29%.
The diff coverage is 68.65%.

@@            Coverage Diff            @@
##           master    #2238     +/-   ##
=========================================
- Coverage   84.71%   84.41%   -0.3%     
=========================================
  Files         243      248      +5     
  Lines        8478     8605    +127     
  Branches      759      772     +13     
=========================================
+ Hits         7182     7264     +82     
- Misses       1073     1114     +41     
- Partials      223      227      +4
Impacted Files Coverage Δ
...mework/theme/components/button/button.component.ts 87.77% <ø> (ø) ⬆️
...rk/theme/components/form-field/prefix.directive.ts 100% <100%> (ø)
...k/theme/components/form-field/form-field.module.ts 100% <100%> (ø)
...rk/theme/components/form-field/suffix.directive.ts 100% <100%> (ø)
...framework/theme/components/cdk/a11y/a11y.module.ts 100% <100%> (ø) ⬆️
src/framework/theme/public_api.ts 100% <100%> (ø) ⬆️
...heme/components/form-field/form-field.component.ts 44% <44%> (ø)
.../theme/components/form-field/form-field-control.ts 71.42% <71.42%> (ø)
...mework/theme/components/select/select.component.ts 89.86% <74.07%> (-1.72%) ⬇️
...ramework/theme/components/input/input.directive.ts 89.04% <82.14%> (-4.58%) ⬇️
... and 7 more

Comment on lines 115 to 117
@ContentChild(NbInputDirective, { static: false }) formControl: NbInputDirective;
@ContentChild(NbInputDirective, { static: false, read: ElementRef }) formControlElement: ElementRef<HTMLInputElement>;

Copy link
Member

Choose a reason for hiding this comment

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

I would personally prefer to name it input instead of formControl since we're querying input

Tibing
Tibing previously approved these changes Feb 27, 2020
@yggg yggg merged commit aee71a7 into akveo:master Feb 27, 2020
@yggg yggg deleted the feat/input-with-icon branch February 27, 2020 11:07
yggg added a commit that referenced this pull request Feb 27, 2020
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.

Input with Icon
2 participants