Skip to content

Commit

Permalink
Add-new-class-for-char-count-infoLable (#965)
Browse files Browse the repository at this point in the history
* add new class for displayLength

* snapshots update

* beta version

* remove beta
  • Loading branch information
CosminaSt authored Oct 9, 2020
1 parent 167a9bf commit 90eca85
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nukleus",
"version": "15.1.3",
"version": "15.1.4",
"description": "Shared components repo for kununu projects",
"main": "dist/components/index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/InfoLabel/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const InfoLabel = ({

// Show requiredLabel if available and user hasn't typed any inputValues
return displayLength ? (
<span className={theme('controlNote', 'infoLabel')}>
<span className={theme('controlNote', 'infoLabel', 'infoLabelCount')}>
<strong>{inputValue.length}</strong>
/
{maxLength}
Expand Down
4 changes: 2 additions & 2 deletions tests/__snapshots__/InfoLabel.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Renders an InfoLabel with a characterCounter 1`] = `
<span
className="controlNote infoLabel"
className="controlNote infoLabel infoLabelCount"
>
<strong>
0
Expand All @@ -14,7 +14,7 @@ exports[`Renders an InfoLabel with a characterCounter 1`] = `

exports[`Renders an InfoLabel with a characterCounter and displays correct count and maxLength 1`] = `
<span
className="controlNote infoLabel"
className="controlNote infoLabel infoLabelCount"
>
<strong>
4
Expand Down
2 changes: 1 addition & 1 deletion tests/__snapshots__/TextField.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ exports[`Renders A TextField with visible character counter without crashing 1`]
>
TextField
<span
className="controlNote infoLabel"
className="controlNote infoLabel infoLabelCount"
>
<strong>
5
Expand Down

0 comments on commit 90eca85

Please sign in to comment.