Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/microsoft/fluentui-blazor in…
Browse files Browse the repository at this point in the history
…to dev
  • Loading branch information
vnbaaij committed Sep 26, 2024
2 parents 49b1130 + 199cf6c commit 378cfed
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6468,6 +6468,12 @@
Default is true.
</summary>
</member>
<member name="P:Microsoft.FluentUI.AspNetCore.Components.FluentMessageBar.FadeIn">
<summary>
Gets or sets the fade in animation for the MessageBar.
Default is true.
</summary>
</member>
<member name="P:Microsoft.FluentUI.AspNetCore.Components.FluentMessageBar.Link">
<summary>
A link can be shown after the message.
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Components/MessageBar/FluentMessageBar.razor
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@if (Type == MessageType.MessageBar)
{
<div id="@Id" class="@ClassValue" style="@StyleValue" @onfocusin="@PauseTimeout" @onfocusout="@ResumeTimeout">
<div id="@Id" class="@ClassValue" style="@StyleValue" animation="@(FadeIn ? "fadein" : null)" @onfocusin="@PauseTimeout" @onfocusout="@ResumeTimeout">

@* Icon *@
<div class="fluent-messagebar-icon">
Expand Down
1 change: 0 additions & 1 deletion src/Core/Components/MessageBar/FluentMessageBar.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public partial class FluentMessageBar : FluentComponentBase, IDisposable
/// <summary />
protected string? ClassValue => new CssBuilder(Class)
.AddClass("fluent-messagebar", () => Type == MessageType.MessageBar)
.AddClass("fluent-messagebar-animation", () => FadeIn)
.AddClass("dark", () => GlobalState.Luminance == StandardLuminance.DarkMode)
.AddClass("fluent-messagebar-notification", () => Type == MessageType.Notification)
.AddClass("intent-info", () => Intent == MessageIntent.Info)
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Components/MessageBar/FluentMessageBar.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
column-gap: 8px;
}

.fluent-messagebar-animation {
.fluent-messagebar[animation="fadein"] {
animation: fadein 1.5s;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

<div class="fluent-messagebar fluent-messagebar-animation intent-info" blazor:onfocusin="1" blazor:onfocusout="2" b-ig2qs97tvl="">
<div class="fluent-messagebar intent-info" animation="fadein" blazor:onfocusin="1" blazor:onfocusout="2" b-ig2qs97tvl="">
<div class="fluent-messagebar-icon" b-ig2qs97tvl="">
<svg style="width: 20px; fill: var(--info);" focusable="false" viewBox="0 0 20 20" aria-hidden="true" blazor:onclick="3">
<title>info</title>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

<div class="fluent-messagebar fluent-messagebar-animation intent-info" blazor:onfocusin="1" blazor:onfocusout="2" b-5ykbiib3u4="">
<div class="fluent-messagebar intent-info" animation="fadein" blazor:onfocusin="1" blazor:onfocusout="2" b-5ykbiib3u4="">
<div class="fluent-messagebar-icon" b-5ykbiib3u4="">
<svg style="width: 20px; fill: var(--info);" focusable="false" viewBox="0 0 20 20" aria-hidden="true" blazor:onclick="3">
<title>info</title>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div id="uniqueId" class="fluent-messagebar fluent-messagebar-animation intent-info" blazor:onfocusin="1" blazor:onfocusout="2" b-ig2qs97tvl="">
<div id="uniqueId" class="fluent-messagebar intent-info" animation="fadein" blazor:onfocusin="1" blazor:onfocusout="2" b-ig2qs97tvl="">
<div class="fluent-messagebar-icon" b-ig2qs97tvl="">
<svg style="width: 20px; fill: var(--info);" focusable="false" viewBox="0 0 20 20" aria-hidden="true" blazor:onkeydown="3" blazor:onclick="4">
<title>info</title>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

<div class="fluent-messagebar-provider " b-aw4knpwcro="">
<div class="fluent-messagebar fluent-messagebar-animation intent-info" blazor:onfocusin="1" blazor:onfocusout="2" b-ig2qs97tvl="">
<div class="fluent-messagebar intent-info" animation="fadein" blazor:onfocusin="1" blazor:onfocusout="2" b-ig2qs97tvl="">
<div class="fluent-messagebar-icon" b-ig2qs97tvl="">
<svg style="width: 20px; fill: var(--info);" focusable="false" viewBox="0 0 20 20" aria-hidden="true" blazor:onclick="3">
<title>info</title>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

<div class="fluent-messagebar-provider " b-aw4knpwcro="">
<div class="fluent-messagebar fluent-messagebar-animation intent-warning" blazor:onfocusin="1" blazor:onfocusout="2" b-ig2qs97tvl="">
<div class="fluent-messagebar intent-warning" animation="fadein" blazor:onfocusin="1" blazor:onfocusout="2" b-ig2qs97tvl="">
<div class="fluent-messagebar-icon" b-ig2qs97tvl="">
<svg style="width: 20px; fill: var(--warning);" focusable="false" viewBox="0 0 20 20" aria-hidden="true" blazor:onclick="3">
<title>warning</title>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

<div class="fluent-messagebar-provider " b-aw4knpwcro="">
<div class="fluent-messagebar fluent-messagebar-animation intent-warning" blazor:onfocusin="1" blazor:onfocusout="2" b-ig2qs97tvl="">
<div class="fluent-messagebar intent-warning" animation="fadein" blazor:onfocusin="1" blazor:onfocusout="2" b-ig2qs97tvl="">
<div class="fluent-messagebar-icon" b-ig2qs97tvl="">
<svg style="width: 20px; fill: var(--warning);" focusable="false" viewBox="0 0 20 20" aria-hidden="true" blazor:onclick="3">
<title>warning</title>
Expand Down

0 comments on commit 378cfed

Please sign in to comment.