Skip to content

Commit

Permalink
Define front end styles for blocks that need them #50
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Nov 18, 2021
1 parent d69b5c9 commit abfdcc3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/oik-blockicon/blockicons.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,12 @@ class BlockiconList extends Component {
* @returns {JSX.Element}
* @constructor
*/

function BlockiconStyled( blocknamebarvariation, ...props ) {
var block = getBlockorVariation( blocknamebarvariation );
return(
<div className={ props.className } >
{ block ? <Icon icon={ block.icon && block.icon.src ? block.icon.src : block.icon } /> : <p>Hmm</p> }
</div>


);
}

Expand Down
3 changes: 2 additions & 1 deletion src/oik-blockinfo/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,6 @@
"lineHeight": false
}
},
"keywords": [ "info", "block", "oik" ]
"keywords": [ "info", "block", "oik" ],
"style": "file:../../build/style-index.css"
}
3 changes: 2 additions & 1 deletion src/oik-blocklist/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,6 @@
"lineHeight": false
}
},
"keywords": [ "list", "block", "oik" ]
"keywords": [ "list", "block", "oik" ],
"style": "file:../../build/style-index.css"
}
3 changes: 2 additions & 1 deletion src/oik-person/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"lineHeight": false
}
},
"keywords": [ "Person", "oik" ]
"keywords": [ "Person", "oik" ],
"style": "file:../../build/style-index.css"
}

0 comments on commit abfdcc3

Please sign in to comment.