Skip to content

Commit

Permalink
0.0.3 (#2)
Browse files Browse the repository at this point in the history
* Add callout icon styles
* Increment version
  • Loading branch information
philschanely authored Sep 6, 2019
1 parent 54768a1 commit 8bdf305
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "course-components",
"version": "0.0.2",
"version": "0.0.3",
"description": "Components for LearnUXD courses",
"main": "src/index.js",
"peerDependencies": {
Expand Down
16 changes: 14 additions & 2 deletions src/components/callout.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import ClassNames from "classnames";


const CalloutContainer = ({ type, color, children }) => {
let colorClass = color ? "callout--" + color : false
let classNames = ClassNames(
"callout",
{
Expand All @@ -29,9 +28,22 @@ const CalloutNumber = ({ number }) => {
};

const CalloutIcon = ({ icon, iconStyle }) => {
icon = icon || "book";
iconStyle = iconStyle || "fal";
let iconClassNames = ClassNames(
"icon",
"icon--static",
"icon--halo",
"icon--lg",
{
[`${iconStyle}`]: iconStyle,
[`fa-${icon}`]: icon,
}
);

return (
<div className="callout__icon">
<i className="icon icon--static icon--halo icon--lg fal fa-book"></i>
<i className={iconClassNames}></i>
</div>
)
};
Expand Down

0 comments on commit 8bdf305

Please sign in to comment.