Skip to content

Commit

Permalink
Merge pull request #461 from storyblok/task/STR-2023-add-icon-slot
Browse files Browse the repository at this point in the history
feat(str-2023): add icon slot
  • Loading branch information
thomas-storyblok authored Nov 6, 2023
2 parents 909421b + 87139a3 commit f9adad0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<div class="sb-minibrowser__list-item-container">
<div class="sb-minibrowser__list-item-name">
{{ label }}
<slot name="meta-icon" />
<SbIcon
v-if="isStartpage"
v-tooltip="{ label: 'Homepage' }"
Expand Down
4 changes: 3 additions & 1 deletion src/components/Minibrowser/minibrowser.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ $full-height-padding: $general-padding - $padding-full-height-difference;
}

&-name {
display: block;
display: flex;
align-items: center;
color: $color-primary-dark;
font-size: $font-14;
}
Expand All @@ -120,6 +121,7 @@ $full-height-padding: $general-padding - $padding-full-height-difference;
border: transparent;
border-radius: $base-border-radius;
cursor: pointer;
flex: 0 0 auto;

.sb-icon {
margin: 0;
Expand Down

0 comments on commit f9adad0

Please sign in to comment.