Skip to content

Fix icon page render issue (#1861) #1880

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

<section class="page-container">
<div class="page-title">Iconography</div>
<div class="page-desc">Bit has traditionally used a custom font for its iconography. This font is part of the MDL2 design system and contains glyphs that you can scale, color, and style in any way.</div>
<div class="page-desc">
Bit has traditionally used a custom font for its iconography.
This font is part of the MDL2 design system and contains glyphs that you can scale, color, and style in any way.
</div>

<div class="page-box">
<div class="box-header">Available Icons</div>
Expand All @@ -12,21 +15,24 @@
IconName="BitIconName.Search"
Value="@searchText"
ValueChanged="@HandleChange"
OnClear="@HandleClear"></BitSearchBox>
OnClear="@HandleClear">
</BitSearchBox>

<div class="icon-list">
@if (filteredIcons.Count == 0)
{
<div class="empty-list"></div>
}
else
{
foreach (var icon in filteredIcons)
{
<div class="icon-box">
<i class="bit-icon bit-icon--icongraphy bit-icon--@icon"></i>
<span class="icon-name">@icon</span>
</div>
}
<BitBasicList Virtualize="true" Items="filteredIcons" Role="list">
<RowTemplate Context="icon">
<div class="icon-box">
<i class="bit-icon bit-icon--icongraphy bit-icon--@icon"></i>
<span class="icon-name">@icon</span>
</div>
</RowTemplate>
</BitBasicList>
}
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
}

.icon-box {
display: flex;
display: inline-flex;
flex-flow: column nowrap;
justify-content: flex-start;
align-items: center;
Expand Down