Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -509,3 +509,5 @@ e.g.:
}
}
```

>**NOTE** - all SVGs require explicit `width` and `height` in the Safari browser in order to be rendered properly, otherwise they'll be rendered to the _default_ size and probably will crop out of view
5 changes: 5 additions & 0 deletions src-ts/lib/styles/mixins/_icons.mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
width: $space-mxx;
}

@mixin icon-full {
height: 100%;
width: 100%;
}

@mixin icon-size($size) {
height: $size * 1px;
width: $size * 1px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
.checkmark {
@include icon-size(26);
flex: 0 0 auto;
}
svg {
@include icon-full;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
color: $black-20;

.icon {

@include icon-xl;
border-radius: 50%;
flex: 0 0 auto;
Expand All @@ -21,6 +22,7 @@
background: $black-40;

> svg {
@include icon-full;
margin: -1 * $border;
}
}
Expand All @@ -43,4 +45,4 @@
background: $tc-white;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const StepIcon: FC<StepIconProps> = (props: StepIconProps) => {
return (
<>
{props.label && props.completed && (
<IconSolid.CheckCircleIcon />
<IconSolid.CheckCircleIcon viewBox='2 2 16 16' />
)}

{!props.label && (
Expand Down