Skip to content

Commit 853868d

Browse files
committed
Demo component updates
1 parent 677dc35 commit 853868d

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

BlazorBootstrap.Demo.RCL/Components/Shared/Demo.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</Tooltip>
1313
</div>
1414
</div>
15-
<div class="highlight">
15+
<div class="highlight border border-top-0">
1616
<pre>
1717
<code class="@LanguageCode.ToLanguageCssClass()">
1818
@if (snippet is not null)
@@ -27,7 +27,7 @@
2727
else if (!Tabs)
2828
{
2929
<div class="bd-example-snippet bd-code-snippet">
30-
<div class="bb-example">
30+
<div class="bb-example border">
3131
<DynamicComponent Type="this.Type"/>
3232
</div>
3333
<div class="d-flex align-items-center highlight-toolbar px-4 py-2 border border-top-0">
@@ -38,7 +38,7 @@ else if (!Tabs)
3838
</Tooltip>
3939
</div>
4040
</div>
41-
<div class="highlight">
41+
<div class="highlight border border-top-0">
4242
<pre>
4343
<code class="@LanguageCode.ToLanguageCssClass()">
4444
@if (snippet is not null)
@@ -58,7 +58,7 @@ else // Tabs = true
5858
<Icon Name="IconName.Display" Class="me-2" /><b>Example</b>
5959
</TitleTemplate>
6060
<Content>
61-
<div class="bb-example border-top-0 mt-0">
61+
<div class="bb-example border border-top-0 mt-0">
6262
<DynamicComponent Type="this.Type"/>
6363
</div>
6464
</Content>

BlazorBootstrap.Demo.RCL/Components/Shared/Demo.razor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public partial class Demo : ComponentBase
44
{
55
#region Fields and Constants
66

7-
private IconColor clipboardTooltipIconColor = IconColor.Dark;
7+
private IconColor clipboardTooltipIconColor = IconColor.None;
88

99
private IconName clipboardTooltipIconName = IconName.Clipboard;
1010

@@ -92,7 +92,7 @@ public void ResetCopyStatusJS()
9292
{
9393
clipboardTooltipTitle = "Copy to clipboard";
9494
clipboardTooltipIconName = IconName.Clipboard;
95-
clipboardTooltipIconColor = IconColor.Dark;
95+
clipboardTooltipIconColor = IconColor.None;
9696

9797
StateHasChanged();
9898
}
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
.highlight-toolbar {
2-
color: #212529;
3-
background-color: #f8f9fa;
2+
/*color: #212529;*/
3+
/*background-color: #f8f9fa;*/
4+
color: var(--bs-body-color);
5+
background-color: var(--bs-body-bg);
46
}

BlazorBootstrap.Demo.RCL/wwwroot/css/blazorbootstrap.demo.rcl.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,8 @@ h1:focus-visible {
316316
.highlight {
317317
padding: 1rem;
318318
margin-bottom: 1rem;
319-
background-color: #f8f9fa;
319+
/*background-color: #f8f9fa;*/
320+
background-color: var(--bs-body-bg);
320321
border: solid #dee2e6;
321322
border-width: 0 1px 1px 1px;
322323
border-bottom-left-radius: .25rem;

blazorbootstrap/wwwroot/blazor.bootstrap.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
--bb-table-sticky-background-color: var(--bs-body-bg);
5252
--bb-table-freeze-column-background-color: var(--bs-body-bg);
5353
--bb-table-selected-row-color: #000;
54-
--bb-table-selected-row-hover-color: #000;
5554
--bb-table-selected-row-background-color: rgba(0,0,0,0.075);
55+
--bb-table-selected-row-hover-color: #000;
5656
--bb-table-selected-row-hover-background-color: rgba(0,0,0,0.075);
5757
/* enum filter */
5858
--bb-grid-filter-dropdown-max-height: 300px;

0 commit comments

Comments
 (0)