Skip to content

Commit 5384762

Browse files
committed
BootstrapIcon - demos update
1 parent d74df4e commit 5384762

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

BlazorExpress.Bulma.Demo.RCL/Pages/Demos/Icons/BootstrapIcons/BootstrapIconDocumentation.razor

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,28 @@
1212
<DocsLink Href="@RouteConstants.Docs_BootstrapIcons_Documentation" />
1313

1414
<Section Class="p-0" Size="HeadingSize.H3" Name="Example" PageUrl="@pageUrl" Link="example">
15-
<Demo Type="typeof(BootstrapIcon_Demo_01_How_it_works)" Tabs="true" />
15+
<Demo Type="typeof(BootstrapIcon_Demo_01_How_it_works)" Tabs="false" />
1616
</Section>
1717

1818
<Section Class="p-0" Size="HeadingSize.H3" Name="Icon text" PageUrl="@pageUrl" Link="icon-text">
19-
<Demo Type="typeof(BootstrapIcon_Demo_02_Icon_Text)" Tabs="true" />
19+
<div class="mb-3">
20+
You can show the icon with text by wrapping the text in a <code>BootstrapIcon</code> component.
21+
In the example below, the icon is shown with text on the right.
22+
</div>
23+
<Demo Type="typeof(BootstrapIcon_Demo_02_Icon_Text)" Tabs="false" />
2024
</Section>
2125

2226
<Section Class="p-0" Size="HeadingSize.H3" Name="Colors" PageUrl="@pageUrl" Link="colors">
23-
<Demo Type="typeof(BootstrapIcon_Demo_03_Icon_Colors_A)" Tabs="true" />
24-
<Demo Type="typeof(BootstrapIcon_Demo_03_Icon_Colors_B_Text_Color)" Tabs="true" />
27+
<div class="mb-3">
28+
Use <code>Color</code> parameter to set the color of the icon.
29+
In the example below, the icon is shown with different colors.
30+
</div>
31+
<Demo Type="typeof(BootstrapIcon_Demo_03_Icon_Colors_A)" Tabs="false" />
32+
<div class="mb-3">
33+
When icon with text is used, aldong with <code>Color</code> parameter,
34+
set <code>ApplyColorToText</code> to <code>true</code> to apply the color to the text as well.
35+
</div>
36+
<Demo Type="typeof(BootstrapIcon_Demo_03_Icon_Colors_B_Text_Color)" Tabs="false" />
2537
</Section>
2638

2739
<Section Class="p-0" Size="HeadingSize.H3" Name="Sizes" PageUrl="@pageUrl" Link="sizes">
@@ -32,7 +44,7 @@
3244
<Demo Type="typeof(BootstrapIcon_Demo_99_All_Icons)" Tabs="true" />
3345
</Section>
3446

35-
@code{
47+
@code {
3648
private const string pageUrl = RouteConstants.Demos_BootstrapIcons_Documentation;
3749
private const string pageTitle = "Bootstrap Icons";
3850
private const string pageDescription = "The <code>BootstrapIcon</code> component will display an icon from any icon font.";

0 commit comments

Comments
 (0)