<commit_before>﻿using Microsoft.AspNetCore.Components;
using System.Threading.Tasks;

namespace Bit.Client.Web.BlazorUI
{
    public partial class BitMessageBar
    {
        [Parameter] public RenderFragment ChildContent { get; set; }

        [Parameter] public MessageBarStyle MessageBarStyle { get; set; } = MessageBarStyle.Default;

        public string StyleClass => MessageBarStyle == MessageBarStyle.Warning
                                        ? "warning"
                                        : MessageBarStyle == MessageBarStyle.Severe
                                            ? "severe"
                                            : MessageBarStyle == MessageBarStyle.Error
                                                ? "error"
                                                : MessageBarStyle == MessageBarStyle.Success
                                                    ? "success"
                                                    : "default";

        protected override string GetElementClass()
        {
            ElementClassContainer.Clear();
            ElementClassContainer.Add("bit-message-bar");

            ElementClassContainer.Add(MessageBarStyle == MessageBarStyle.Warning ? "warning"
                                    : MessageBarStyle == MessageBarStyle.Severe ? "severe"
                                    : MessageBarStyle == MessageBarStyle.Error ? "error"
                                    : MessageBarStyle == MessageBarStyle.Success ? "success"
                                    : "default");

            return base.GetElementClass();
        }

        public override Task SetParametersAsync(ParameterView parameters)
        {<commit_msg>Removed StyleClass property from BitMessageBar<commit_after>﻿using Microsoft.AspNetCore.Components;
using System.Threading.Tasks;

namespace Bit.Client.Web.BlazorUI
{
    public partial class BitMessageBar
    {
        [Parameter] public RenderFragment ChildContent { get; set; }

        [Parameter] public MessageBarStyle MessageBarStyle { get; set; } = MessageBarStyle.Default;

        protected override string GetElementClass()
        {
            ElementClassContainer.Clear();
            ElementClassContainer.Add("bit-message-bar");

            ElementClassContainer.Add(MessageBarStyle == MessageBarStyle.Warning ? "warning"
                                    : MessageBarStyle == MessageBarStyle.Severe ? "severe"
                                    : MessageBarStyle == MessageBarStyle.Error ? "error"
                                    : MessageBarStyle == MessageBarStyle.Success ? "success"
                                    : "default");

            return base.GetElementClass();
        }

        public override Task SetParametersAsync(ParameterView parameters)
        {
{'fraction_non_alphanumeric': 0.07374421090131814, 'fraction_numerical': 0.0, 'mean_word_length': 1.5183856502242152, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6965208', 'n_tokens_mistral': 573, 'n_tokens_neox': 557, 'n_words': 118}