Skip to content

Commit

Permalink
Fixes #1
Browse files Browse the repository at this point in the history
* Fixes #1

Adds cardHeaderIconCollapsedClass and cardHeaderIconDisclosedClass to allow customizing the disclosure button on the fieldset

* Corrected variable names

* Version update v0.1.3
  • Loading branch information
easeq authored Feb 19, 2019
1 parent ccc8cb2 commit 86366c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flipbyte/formik-json",
"version": "0.1.2",
"version": "0.1.3",
"description": "formik-json is a wrapper for Formik to easily create forms using JSON / Javascript Object for defining the elements",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
4 changes: 3 additions & 1 deletion src/Container/Fieldset.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class Fieldset extends Component {
prefixNameToElement = false,
cardClass = 'card flutter-fieldset',
cardHeaderClass = 'card-header',
cardHeaderIconCollapsedClass = 'fas fa-angle-down',
cardHeaderIconDisclosedClass = 'fas fa-angle-up',
cardHeaderActionsClass = 'card-header-actions',
cardBodyClass = 'card-body'
}
Expand All @@ -54,7 +56,7 @@ class Fieldset extends Component {
{ title }
{ this.collapsible && <div className={ cardHeaderActionsClass }>
<a className="card-header-action btn btn-minimize">
<i className={ 'fas ' + (this.state.collapsed ? 'fa-angle-down' : 'fa-angle-up') }></i>
<i className={ this.state.collapsed ? cardHeaderIconCollapsedClass : cardHeaderIconDisclosedClass }></i>
</a>
</div> }

Expand Down

0 comments on commit 86366c5

Please sign in to comment.