Skip to content

Commit

Permalink
feat(blazorui): replace DoubleChevronDown icons with DoubleChevronUp #…
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyrus-Sushiant authored Nov 15, 2024
1 parent 01805f9 commit 6526a79
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
@if (Truncate && Multiline is false)
{
<button style="@Styles?.ExpanderButton" class="bit-msg-exb @Classes?.ExpanderButton" @onclick="ToggleExpand" type="button">
<i style="@Styles?.ExpanderIcon" class="bit-msg-exi bit-icon bit-icon--@(_isExpanded ? CollapseIcon : ExpandIcon) @Classes?.ExpanderIcon" aria-hidden="true" />
<i style="@Styles?.ExpanderIcon" class="bit-msg-exi bit-icon bit-icon--@(_isExpanded ? (CollapseIcon ?? "DoubleChevronUp") : (ExpandIcon ?? "DoubleChevronUp bit-ico-r180")) @Classes?.ExpanderIcon" aria-hidden="true" />
</button>
}

@if (OnDismiss.HasDelegate)
{
<button style="@Styles?.DismissButton" class="bit-msg-dmb @Classes?.DismissButton" @onclick="OnDismiss" type="button">
<i style="@Styles?.DismissIcon" class="bit-msg-dmi bit-icon bit-icon--@DismissIcon @Classes?.DismissIcon" aria-hidden="true" />
<i style="@Styles?.DismissIcon" class="bit-msg-dmi bit-icon bit-icon--@(DismissIcon ?? "Cancel") @Classes?.DismissIcon" aria-hidden="true" />
</button>
}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ public partial class BitMessage : BitComponentBase
[Parameter] public BitMessageClassStyles? Classes { get; set; }

/// <summary>
/// Custom Fabric icon name for the collapse icon in Truncate mode. If unset, default will be the Fabric DoubleChevronUp icon.
/// Custom Fabric icon name for the collapse icon in Truncate mode.
/// </summary>
[Parameter] public string CollapseIcon { get; set; } = "DoubleChevronUp";
[Parameter] public string? CollapseIcon { get; set; }

/// <summary>
/// The general color of the message.
Expand All @@ -46,7 +46,7 @@ public partial class BitMessage : BitComponentBase
/// <summary>
/// Custom Fabric icon name to replace the dismiss icon. If unset, default will be the Fabric Cancel icon.
/// </summary>
[Parameter] public string DismissIcon { get; set; } = "Cancel";
[Parameter] public string? DismissIcon { get; set; }

/// <summary>
/// Determines the elevation of the message, a scale from 1 to 24.
Expand All @@ -55,9 +55,9 @@ public partial class BitMessage : BitComponentBase
public int? Elevation { get; set; }

/// <summary>
/// Custom Fabric icon name for the expand icon in Truncate mode. If unset, default will be the Fabric DoubleChevronDown icon.
/// Custom Fabric icon name for the expand icon in Truncate mode.
/// </summary>
[Parameter] public string ExpandIcon { get; set; } = "DoubleChevronDown";
[Parameter] public string? ExpandIcon { get; set; }

/// <summary>
/// Prevents rendering the icon of the message.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ public partial class BitMessageDemo
new()
{
Name = "CollapseIcon",
Type = "string",
DefaultValue = "DoubleChevronUp",
Description = "Custom Fabric icon name for the collapse icon in Truncate mode. If unset, default will be the Fabric DoubleChevronUp icon.",
Type = "string?",
DefaultValue = "null",
Description = "Custom Fabric icon name for the collapse icon in Truncate mode.",
},
new()
{
Expand All @@ -62,8 +62,8 @@ public partial class BitMessageDemo
new()
{
Name = "DismissIcon",
Type = "string",
DefaultValue = "Cancel",
Type = "string?",
DefaultValue = "null",
Description = "Custom Fabric icon name to replace the dismiss icon. If unset, default will be the Fabric Cancel icon.",
},
new()
Expand All @@ -76,9 +76,9 @@ public partial class BitMessageDemo
new()
{
Name = "ExpandIcon",
Type = "string",
DefaultValue = "DoubleChevronDown",
Description = "Custom Fabric icon name for the expand icon in Truncate mode. If unset, default will be the Fabric DoubleChevronDown icon.",
Type = "string?",
DefaultValue = "null",
Description = "Custom Fabric icon name for the expand icon in Truncate mode.",
},
new()
{
Expand Down

0 comments on commit 6526a79

Please sign in to comment.