diff --git a/src/Core/Components/MessageBar/Message.cs b/src/Core/Components/MessageBar/Message.cs index c7a4d45647..b19c25fc9f 100644 --- a/src/Core/Components/MessageBar/Message.cs +++ b/src/Core/Components/MessageBar/Message.cs @@ -1,3 +1,7 @@ +// ------------------------------------------------------------------------ +// MIT License - Copyright (c) Microsoft Corporation. All rights reserved. +// ------------------------------------------------------------------------ + namespace Microsoft.FluentUI.AspNetCore.Components; /// @@ -24,7 +28,7 @@ internal Message(MessageOptions options) /// Default is MessageIntent.Info. /// See for more details. /// - public MessageIntent? Intent => Options.Intent; + public MessageIntent? Intent => Options.Intent ?? MessageIntent.Info; /// /// Indication of in which message bar the message needs to be shown. Default is null.