Skip to content

Commit

Permalink
Use StringBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
stsrki committed Oct 18, 2023
1 parent ff230a2 commit a8cb462
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/Blazorise.Tailwind/TailwindClassProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a8cb462

Please sign in to comment.