Skip to content

Commit 33ba26e

Browse files
authored
bootstrap v5.3.3 upgrade + demos + docs update (#729)
* Blazor 5.3.3 upgrade + Modal close "X" button with bootstrap 5.3.3 #714 * Demos and Docs update
1 parent 298d143 commit 33ba26e

File tree

244 files changed

+2551
-1308
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

244 files changed

+2551
-1308
lines changed

BlazorBootstrap.Demo.Hosted/Server/Pages/_Host.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<base href="~/" />
1414
<link href="images/logo/128X128.png" rel="icon" type="image/png" />
1515
<!-- CSS only -->
16-
<link href="https://cdn.jsdelivr.net/npm/[email protected].2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
16+
<link href="https://cdn.jsdelivr.net/npm/[email protected].3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
1717
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css" integrity="sha512-tN7Ec6zAFaVSG3TpNAKtk4DOHNpSwKHxxrsiw4GHKESGPs5njn/0sMCUMl2svV4wo4BK/rCP7juYz+zx+l6oeQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
1818
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism-themes/1.9.0/prism-vs.min.css" integrity="sha512-Jn4HzkCnzA7Bc+lbSQHAMeen0EhSTy71o9yJbXZtQx9VvozKVBV/2zfR3VyuDFIxGvHgbOMMNvb80l+jxFBC1Q==" crossorigin="anonymous" referrerpolicy="no-referrer" />
1919
<link href="_content/Blazor.Bootstrap/blazor.bootstrap.css" rel="stylesheet" asp-append-version="true" />
@@ -48,7 +48,7 @@
4848
<component type="typeof(App)" render-mode="WebAssemblyPrerendered" />
4949

5050
<script src="_framework/blazor.webassembly.js" autostart="false" asp-append-version="true"></script>
51-
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
51+
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
5252
<!-- Add chart.js reference if chart components are used in your application. -->
5353
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.0.1/chart.umd.js" integrity="sha512-gQhCDsnnnUfaRzD8k1L5llCCV6O9HN09zClIzzeJ8OJ9MpGmIlCxm+pdCkqTwqJ4JcjbojFr79rl2F1mzcoLMQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
5454
<!-- Add chartjs-plugin-datalabels.min.js reference if chart components with data label feature is used in your application. -->

BlazorBootstrap.Demo.RCL/Components/Pages/Accordion/AccordionDocumentation.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
The <code>Accordion</code> component uses the <code>Collapse</code> component internally to make it collapsible.
1717
</div>
1818

19-
<Callout Type="CalloutType.Info">
19+
<Callout Color="CalloutColor.Info">
2020
The animation effect of this component is dependent on the <code>prefers-reduced-motion</code> media query. <br />
2121
See the <a href="https://getbootstrap.com/docs/5.3/getting-started/accessibility/#reduced-motion" target="_blank">reduced motion section of our accessibility documentation</a>.
2222
</Callout>
@@ -41,7 +41,7 @@
4141

4242
<SectionHeading Size="HeadingSize.H2" Text="Set default active accordion item" PageUrl="@pageUrl" HashTagName="set-default-active-accordion-item" />
4343
<div class="mb-3">
44-
Set the <code>IsActive</code> parameter to <code>true</code> to keep the accordion item open by default.
44+
Set the <code>Active</code> parameter to <code>true</code> to keep the accordion item open by default.
4545
</div>
4646
<Demo Type="typeof(Accordion_Demo_04_Set_Default_Active)" Tabs="true" />
4747

@@ -97,7 +97,7 @@
9797
</tr>
9898
</tbody>
9999
</table>
100-
<Callout Type="CalloutType.Info">
100+
<Callout Type="CalloutColor.Info">
101101
If no accordion item is active, then the <code>OnHiding</code> and <code>OnHidden</code> events will not be fired.
102102
</Callout>
103103
</div>

BlazorBootstrap.Demo.RCL/Components/Pages/Accordion/Accordion_Demo_04_Set_Default_Active.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<b>This is the first item's accordion body.</b> It is shown by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the .accordion-body, though the transition does limit overflow.
55
</Content>
66
</AccordionItem>
7-
<AccordionItem Title="Accordion Item #2" IsActive="true">
7+
<AccordionItem Title="Accordion Item #2" Active="true">
88
<Content>
99
<b>This is the second item's accordion body.</b> It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the .accordion-body, though the transition does limit overflow.
1010
</Content>

BlazorBootstrap.Demo.RCL/Components/Pages/Alerts/AlertDocumentation.razor

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,32 @@
1313
<div class="mb-3">Alerts are available for any length of text, as well as an optional close button. For proper styling, use one of the eight colors.</div>
1414
<Demo Type="typeof(Alert_Demo_01_Examples)" Tabs="true" />
1515

16+
<SectionHeading Size="HeadingSize.H2" Text="Link color" PageUrl="@pageUrl" HashTagName="link-color" />
17+
<div class="mb-3">Use the <code>alert-link</code> css class to quickly provide matching colored links within any alert.</div>
18+
<Demo Type="typeof(Alert_Demo_02_Link_Color)" Tabs="true" />
19+
1620
<SectionHeading Size="HeadingSize.H2" Text="Additional Content" PageUrl="@pageUrl" HashTagName="additional-content" />
1721
<div class="mb-3">Alerts can also contain additional HTML elements like headings, paragraphs and dividers.</div>
18-
<Demo Type="typeof(Alert_Demo_02_Additional_Content)" Tabs="false" />
22+
<Demo Type="typeof(Alert_Demo_03_Additional_Content)" Tabs="false" />
1923

2024
<SectionHeading Size="HeadingSize.H2" Text="Icons" PageUrl="@pageUrl" HashTagName="icons" />
2125
<div class="mb-3">Similarly, you can use Bootstrap Icons to create alerts with icons.</div>
22-
<Demo Type="typeof(Alert_Demo_03_Icons)" Tabs="true" />
26+
<Demo Type="typeof(Alert_Demo_04_Icons)" Tabs="true" />
2327

2428
<SectionHeading Size="HeadingSize.H2" Text="Dismissing" PageUrl="@pageUrl" HashTagName="dismissing" />
2529
<div class="mb-3">1. Using the <code>Dismissable="true"</code>, it’s possible to dismiss any alert inline.</div>
26-
<Demo Type="typeof(Alert_Demo_04_Dismissing_A)" Tabs="true" />
30+
<Demo Type="typeof(Alert_Demo_05_Dismissing_A)" Tabs="true" />
2731

2832
<div class="my-3">2. Manually we can close an alert with button click.</div>
29-
<Demo Type="typeof(Alert_Demo_04_Dismissing_B)" Tabs="true" />
33+
<Demo Type="typeof(Alert_Demo_05_Dismissing_B)" Tabs="true" />
3034

31-
<Callout Color="CalloutType.Warning">
35+
<Callout Color="CalloutColor.Warning">
3236
When an alert is dismissed, the element is completely removed from the page structure. If a keyboard user dismisses the alert using the close button, their focus will suddenly be lost and, depending on the browser, reset to the start of the page/document.
3337
For this reason, we recommend subscribing to the <code>OnClosed</code> callback event and programmatically sets focus to the most appropriate location on the page.
3438
</Callout>
3539

3640
<SectionHeading Size="HeadingSize.H2" Text="Switch alert type dynamically" PageUrl="@pageUrl" HashTagName="switch-alert-type-dynamically" />
37-
<Demo Type="typeof(Alert_Demo_05_Switch_Alert_Type_Dynamically)" Tabs="true" />
41+
<Demo Type="typeof(Alert_Demo_06_Switch_Alert_Type_Dynamically)" Tabs="true" />
3842

3943
@code{
4044
private string pageUrl = "/alerts";

BlazorBootstrap.Demo.RCL/Components/Pages/Alerts/Alert_Demo_01_Examples.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
<Alert Color="AlertColor.Warning"> A simple warning alert - check it out! </Alert>
66
<Alert Color="AlertColor.Info"> A simple info alert - check it out! </Alert>
77
<Alert Color="AlertColor.Light"> A simple light alert - check it out! </Alert>
8-
<Alert Color="AlertColor.Dark"> A simple dark alert - check it out! </Alert>
8+
<Alert Color="AlertColor.Dark"> A simple dark alert - check it out! </Alert>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<Alert Color="AlertColor.Primary">
2+
A simple primary alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
3+
</Alert>
4+
5+
<Alert Color="AlertColor.Secondary">
6+
A simple secondary alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
7+
</Alert>
8+
9+
<Alert Color="AlertColor.Success">
10+
A simple success alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
11+
</Alert>
12+
13+
<Alert Color="AlertColor.Danger">
14+
A simple danger alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
15+
</Alert>
16+
17+
<Alert Color="AlertColor.Warning">
18+
A simple warning alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
19+
</Alert>
20+
21+
<Alert Color="AlertColor.Info">
22+
A simple info alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
23+
</Alert>
24+
25+
<Alert Color="AlertColor.Light">
26+
A simple light alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
27+
</Alert>
28+
29+
<Alert Color="AlertColor.Dark">
30+
A simple dark alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
31+
</Alert>

0 commit comments

Comments
 (0)