Skip to content

Commit

Permalink
Fixed bug in defaultSpacing 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
actuallyakash committed Jun 15, 2021
1 parent 0ffd1ee commit 00e8038
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spacers({

spacers({
element: '.defaultSpacing-prop',
defaultSpacing: '10px'
defaultSpacing: '10'
});

spacers({
Expand Down
2 changes: 1 addition & 1 deletion spacers/spacers.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function spacers( options ) {

// Adding default spacing
if( !options.defaultPadding || !options.defaultMargin ) {
document.documentElement.style.setProperty( '--spacer-val', defaultSpacing );
document.documentElement.style.setProperty( '--spacer-size', defaultSpacing + spacingUnit );
}

// Addding custom-defined classes
Expand Down

0 comments on commit 00e8038

Please sign in to comment.