Skip to content

Commit

Permalink
chore(styleguide): Fixes styleguide navbar click behavior
Browse files Browse the repository at this point in the history
Also adds a watcher to the styleguide js for gulp.

[Finishes #102534330]
  • Loading branch information
Kenny Wang committed Sep 9, 2015
1 parent e7bd91e commit d07cb1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/styleguide/styleguide.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ $(document).ready(function() {
if (targetCategoryClosed) {
$targetCategory.addClass('active');
$targetCategory.find('ul.styleguide-second-level-nav').slideDown();
} else {
setTimeout(function() {
$('ul.styleguide-second-level-nav').removeAttr('style');
}, 500);
}
});
});
Expand Down
3 changes: 2 additions & 1 deletion tasks/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ gulp.task('setup-watchers', (callback) => {
process.env.WEBPACK_WATCH = true;
gulp.watch(['src/pivotal-ui/components/**/*.scss'], ['monolith-hologram', 'monolith-build-css-from-cache']);
gulp.watch(['src/pivotal-ui-react/**/*.js'], ['monolith-hologram']);
gulp.watch(['src/styleguide/**/*.scss'], ['monolith-styleguide-css']);
gulp.watch(['src/styleguide/*.scss'], ['monolith-styleguide-css']);
gulp.watch(['src/styleguide/*.js'], ['monolith-styleguide-assets']);
callback();
});

Expand Down

0 comments on commit d07cb1a

Please sign in to comment.