diff --git a/blazorbootstrap/Enums/IconSize.cs b/blazorbootstrap/Enums/IconSize.cs index 0396cf0b0..5d8d0b66f 100644 --- a/blazorbootstrap/Enums/IconSize.cs +++ b/blazorbootstrap/Enums/IconSize.cs @@ -1,32 +1,42 @@ namespace BlazorBootstrap; /// -/// Defines the size of an element. +/// Represents the size of an element. /// public enum IconSize { /// - /// Default icon size will be applied. + /// The default icon size. /// None, /// - /// The icon will be size 2em. + /// An extra large icon, 2.5rem in size. + /// + x1, + + /// + /// A large icon, 2rem in size. /// x2, /// - /// The icon will be size 3em. + /// A medium icon, 1.75rem in size. /// x3, /// - /// The icon will be size 4em. + /// A small icon, 1.5rem in size. /// x4, /// - /// The icon will be size 5em. + /// A very small icon, 1.25rem in size. + /// + x5, + + /// + /// The smallest icon, 1rem in size. /// - x5 + x6 } diff --git a/blazorbootstrap/Utilities/BootstrapIconProvider.cs b/blazorbootstrap/Utilities/BootstrapIconProvider.cs index 7551f4f80..301598907 100644 --- a/blazorbootstrap/Utilities/BootstrapIconProvider.cs +++ b/blazorbootstrap/Utilities/BootstrapIconProvider.cs @@ -31,10 +31,12 @@ public string IconSize(IconSize iconSize) { return iconSize switch { + BlazorBootstrap.IconSize.x1 => "fs-1", BlazorBootstrap.IconSize.x2 => "fs-2", BlazorBootstrap.IconSize.x3 => "fs-3", BlazorBootstrap.IconSize.x4 => "fs-4", BlazorBootstrap.IconSize.x5 => "fs-5", + BlazorBootstrap.IconSize.x6 => "fs-6", _ => null }; }