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

fix(input-group): Minor fixes and documentation update #2128

Merged
merged 15 commits into from
Nov 3, 2018

Conversation

tmorehouse
Copy link
Member

@tmorehouse tmorehouse commented Nov 3, 2018

Description of PR:

Some adjustments to the render functions of b-input-group and it's sub components. Addresses possible undefined content issues.

Includes component reference for sub components, and removed unneeded props in the append/prepend sub-component.

Includes rendering Vue placeholder elements (<!---->) for optional content areas, improving DOM patch performance.


PR checklist:

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Enhancement to an existing feature
  • ARIA accessibility
  • Documentation update
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

The PR fulfills these requirements:

  • It's submitted to the dev branch, not the master branch
  • When resolving a specific issue, it's referenced in the PR's title (e.g. fixes #xxxx[,#xxxx], where "xxxx" is the issue number)

If new features/enhancement/fixes are added or changed:

  • Includes documentation updates
  • New/updated tests are included and passing (if required)
  • Existing test suites are passing
  • The changes have not impacted the functionality of other components or directives
  • ARIA Accessibility has been taken into consideration (does it affect screen reader users or keyboard only users?)

If adding a new feature, or changing the functionality of an existing feature, the PR's description includes:

  • A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

PR titles should following the Conventional Commits naming convention

`staticClass` assumes the classes applied to the element  are "static" and never changing during a DOM patch.  This should be be using `class` instead, as one could (theoretically) change the value of `.append` prop after render, which needs to change the class name rendered (a non static class)
this component should **not** expose an append prop (it is internal only)
this component should **not** expose an append prop (it is internal only)
@codecov
Copy link

codecov bot commented Nov 3, 2018

Codecov Report

Merging #2128 into dev will increase coverage by 0.09%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev    #2128      +/-   ##
==========================================
+ Coverage   64.88%   64.97%   +0.09%     
==========================================
  Files         156      158       +2     
  Lines        2950     2958       +8     
  Branches      810      811       +1     
==========================================
+ Hits         1914     1922       +8     
  Misses        749      749              
  Partials      287      287
Impacted Files Coverage Δ
src/components/input-group/input-group-addon.js 100% <100%> (ø) ⬆️
src/components/input-group/input-group-prepend.js 100% <100%> (ø)
src/components/input-group/input-group-append.js 100% <100%> (ø)
src/components/input-group/input-group.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 430371f...63a435f. Read the comment docs.

@tmorehouse tmorehouse merged commit afe1cd0 into dev Nov 3, 2018
@tmorehouse tmorehouse deleted the tmorehouse/input-group branch November 3, 2018 23:19
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.

1 participant