0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-08-06 08:57:38 +00:00

empty menus styled as disabled

This commit is contained in:
Gazook89
2026-04-23 22:17:52 -05:00
parent 8bebbdac5d
commit 992b72ee6f
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -56,6 +56,7 @@ const Dropdown = ({ groupName, className = null, icon, children, color = null, i
icon={icon}
aria-haspopup='menu'
role='menuitem'
disabled={children.length > 0 ? false : true}
>
{trigger(groupName)}
</button>
@@ -220,6 +220,11 @@
&:hover {
background-color : #999999;
}
&:disabled {
color: gray;
cursor: not-allowed;
&:hover { background-color: unset; }
}
}
.disabledSnippets {
color: grey;