-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* IconSize updates #346
- Loading branch information
Showing
17 changed files
with
132 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,19 +21,20 @@ | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" rel="stylesheet" /> | ||
<link href="css/demo.css" rel="stylesheet" asp-append-version="true" /> | ||
<link href="BlazorBootstrap.Demo.Hosted.Client.styles.css" rel="stylesheet" asp-append-version="true" /> | ||
<!-- Font Awesome --> | ||
<script src="https://kit.fontawesome.com/42379982c2.js" crossorigin="anonymous"></script> | ||
|
||
<script>window.ga = window.ga || function () { (ga.q = ga.q || []).push(arguments) }, ga.l = +new Date, ga("create", "UA-214301343-1", "auto"), ga("set", "anonymizeIp", !0), ga("send", "pageview")</script> | ||
<script async src="https://www.google-analytics.com/analytics.js"></script> | ||
<!-- Global site tag (gtag.js) - Google Analytics --> | ||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-214301343-1"></script> | ||
<!-- Google tag (gtag.js) --> | ||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-60QGZHW8TG"></script> | ||
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag() { dataLayer.push(arguments); } | ||
gtag('js', new Date()); | ||
gtag('config', 'UA-214301343-1'); | ||
gtag('config', 'G-60QGZHW8TG'); | ||
</script> | ||
|
||
<!-- Micorosft Clarity --> | ||
<!-- Microsoft Clarity --> | ||
<script type="text/javascript"> | ||
(function (c, l, a, r, i, t, y) { | ||
c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments) }; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
BlazorBootstrap.Demo.RCL/Pages/Icons/Icon_Demo_01_Examples.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<Icon Name="IconName.Alarm" /> | ||
<Icon Name="IconName.AlarmFill" /> | ||
<Icon Name="IconName.Window" /> | ||
<Icon Name="IconName.Apple" /> | ||
<Icon Name="IconName.Apple" /> |
6 changes: 6 additions & 0 deletions
6
BlazorBootstrap.Demo.RCL/Pages/Icons/Icon_Demo_03_Font_Awesome_Icons.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<Icon CustomIconName="fa-solid fa-hands-clapping" Size="IconSize.x1" /> | ||
<Icon CustomIconName="fa-solid fa-hands-clapping" Size="IconSize.x2" /> | ||
<Icon CustomIconName="fa-solid fa-hands-clapping" Size="IconSize.x3" /> | ||
<Icon CustomIconName="fa-solid fa-hands-clapping" Size="IconSize.x4" /> | ||
<Icon CustomIconName="fa-solid fa-hands-clapping" Size="IconSize.x5" /> | ||
<Icon CustomIconName="fa-solid fa-hands-clapping" Size="IconSize.x6" /> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
BlazorBootstrap.Demo.RCL/Pages/Icons/Icon_Demo_07_C_Button_With_Font_Awesome_Icon.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<Button Color="ButtonColor.Secondary" TooltipTitle="Compare code"> | ||
<Icon CustomIconName="fa-solid fa-code-compare"/> | ||
</Button> | ||
<Button Color="ButtonColor.Secondary" TooltipTitle="Create pull request"> | ||
<Icon CustomIconName="fa-solid fa-code-pull-request" /> | ||
</Button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,8 @@ | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" rel="stylesheet" /> | ||
<link href="css/demo.css" rel="stylesheet" asp-append-version="true" /> | ||
<link href="BlazorBootstrap.Demo.Server.styles.css" rel="stylesheet" asp-append-version="true" /> | ||
<!-- Font Awesome --> | ||
<script src="https://kit.fontawesome.com/42379982c2.js" crossorigin="anonymous"></script> | ||
|
||
<!-- Google tag (gtag.js) --> | ||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-60QGZHW8TG"></script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,8 @@ | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" rel="stylesheet" /> | ||
<link href="css/demo.css" rel="stylesheet" /> | ||
<link href="BlazorBootstrap.Demo.WebAssembly.styles.css" rel="stylesheet" /> | ||
<!-- Font Awesome --> | ||
<script src="https://kit.fontawesome.com/42379982c2.js" crossorigin="anonymous"></script> | ||
|
||
<!-- Google tag (gtag.js) --> | ||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-60QGZHW8TG"></script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,42 @@ | ||
namespace BlazorBootstrap; | ||
|
||
/// <summary> | ||
/// Defines the size of an <see cref="Icon" /> element. | ||
/// Represents the size of an <see cref="Icon" /> element. | ||
/// </summary> | ||
public enum IconSize | ||
{ | ||
/// <summary> | ||
/// Default icon size will be applied. | ||
/// The default icon size. | ||
/// </summary> | ||
None, | ||
|
||
/// <summary> | ||
/// The icon will be size 2em. | ||
/// An extra large icon, 2.5rem in size. | ||
/// </summary> | ||
x1, | ||
|
||
/// <summary> | ||
/// A large icon, 2rem in size. | ||
/// </summary> | ||
x2, | ||
|
||
/// <summary> | ||
/// The icon will be size 3em. | ||
/// A medium icon, 1.75rem in size. | ||
/// </summary> | ||
x3, | ||
|
||
/// <summary> | ||
/// The icon will be size 4em. | ||
/// A small icon, 1.5rem in size. | ||
/// </summary> | ||
x4, | ||
|
||
/// <summary> | ||
/// The icon will be size 5em. | ||
/// A very small icon, 1.25rem in size. | ||
/// </summary> | ||
x5, | ||
|
||
/// <summary> | ||
/// The smallest icon, 1rem in size. | ||
/// </summary> | ||
x5 | ||
x6 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
title: Blazor Bootstrap v1.10.3 | ||
authors: | ||
name: Vikram Reddy | ||
title: Creator | ||
url: https://github.com/gvreddy04 | ||
image_url: https://avatars.githubusercontent.com/u/2337067 | ||
tags: [v1.10.3, blazor, bootstrap, bootstrap5, blazorbootstrap, dropdown, blazordropdown, icon, blazoricon, docs] | ||
--- | ||
|
||
We are excited to release 1.10.3 with enhancements to dropdown, icons, and others!!! | ||
|
||
![image](https://i.imgur.com/HkqLwlx.png "Blazor Bootstrap: Dropdown Component") | ||
|
||
<!--truncate--> | ||
|
||
## What's changed | ||
|
||
- `Dropdown` component | ||
- Add feature to disable Dropdown [#373](https://github.com/vikramlearning/blazorbootstrap/issues/352) | ||
|
||
- `Icon` component | ||
- Sizing for icons in buttons is strange [#346](https://github.com/vikramlearning/blazorbootstrap/issues/346) | ||
|
||
## Links | ||
- [Demo Website - Blazor Server](https://demos.blazorbootstrap.com/) | ||
- [Demo Website - Blazor WebAssembly](https://demos.getblazorbootstrap.com/) | ||
- [Blazor Chart Components Documentation](https://getblazorbootstrap.com/docs/components/charts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters