Skip to content
This repository was archived by the owner on Mar 30, 2021. It is now read-only.

Commit 2c5bc2a

Browse files
committed
Fixed css bug - custom styles not added to component
1 parent 864e005 commit 2c5bc2a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

generators/app/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,8 @@ module.exports = class extends Generator {
378378
this.destinationPath("examples/index.html"),
379379
{
380380
title: this.props.toolNameHuman,
381-
toolNameComputer: this.props.toolNameComputer
381+
toolNameComputer: this.props.toolNameComputer,
382+
toolNameCamel: this.props.toolNameCamel
382383
}
383384
);
384385
this.fs.copyTpl(

generators/app/templates/examples/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h1><%= title %> demo</h1>
2727

2828
<!-- the geneId param below can be removed if needed - it's just an example of
2929
how to pass values to the component's JS behaviours. -->
30-
<<%= toolNameComputer %> geneId="BRCA1"></<%= toolNameComputer %>>
30+
<<%= toolNameComputer %> geneId="BRCA1" class="<%= toolNameCamel %>"></<%= toolNameComputer %>>
3131

3232
</body>
3333

0 commit comments

Comments
 (0)