seas-computing / mark-one

A UI component library for building React Apps (in development)
https://seas-computing.github.io/mark-one/
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Feature/224 add hide error prop to input text label #77

Closed farassadek closed 3 years ago

farassadek commented 3 years ago

New Feature: Adding a hideError Prop to the the TextInput.

hideError will be used by the TextInput to hide the error if exist. It will be used by the label to adjust the style of the area of the errorMessage(will remove the spaces under the TextInput).

Tests of the hideError is included in the InputText test.

codecov[bot] commented 3 years ago

Codecov Report

Merging #77 into develop will increase coverage by 0.01%. The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #77      +/-   ##
===========================================
+ Coverage    98.23%   98.24%   +0.01%     
===========================================
  Files           42       42              
  Lines          509      513       +4     
  Branches        93       96       +3     
===========================================
+ Hits           500      504       +4     
  Misses           5        5              
  Partials         4        4              
Impacted Files Coverage Δ
src/Forms/InputLabel.tsx 97.14% <100.00%> (+0.36%) :arrow_up:
src/Forms/TextInput.tsx 100.00% <100.00%> (ø)

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 d8593d8...eb1b66b. Read the comment docs.