diff --git a/Source/Blazorise.Tailwind/TailwindClassProvider.cs b/Source/Blazorise.Tailwind/TailwindClassProvider.cs index 1a6f5b4404..05566bc9de 100644 --- a/Source/Blazorise.Tailwind/TailwindClassProvider.cs +++ b/Source/Blazorise.Tailwind/TailwindClassProvider.cs @@ -595,16 +595,16 @@ public override string DropdownMenuVisible( bool visible ) => visible public override string DropdownToggle( bool isDropdownSubmenu, bool outline ) { - string baseClass = isDropdownSubmenu + var sb = new StringBuilder( isDropdownSubmenu ? "b-dropdown-toggle-submenu block flex flex-row justify-between w-full py-2 px-4 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white" - : "b-button b-dropdown-toggle focus:outline-none font-medium text-sm text-center inline-flex items-center"; + : "b-button b-dropdown-toggle focus:outline-none font-medium text-sm text-center inline-flex items-center" ); if ( outline ) { - baseClass += " focus:ring-4"; + sb.Append( " focus:ring-4" ); } - return baseClass; + return sb.ToString(); } public override string DropdownToggleSelector( bool isDropdownSubmenu ) => isDropdownSubmenu