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:
@@ -56,6 +56,7 @@ const Dropdown = ({ groupName, className = null, icon, children, color = null, i
|
|||||||
icon={icon}
|
icon={icon}
|
||||||
aria-haspopup='menu'
|
aria-haspopup='menu'
|
||||||
role='menuitem'
|
role='menuitem'
|
||||||
|
disabled={children.length > 0 ? false : true}
|
||||||
>
|
>
|
||||||
{trigger(groupName)}
|
{trigger(groupName)}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -220,6 +220,11 @@
|
|||||||
&:hover {
|
&:hover {
|
||||||
background-color : #999999;
|
background-color : #999999;
|
||||||
}
|
}
|
||||||
|
&:disabled {
|
||||||
|
color: gray;
|
||||||
|
cursor: not-allowed;
|
||||||
|
&:hover { background-color: unset; }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.disabledSnippets {
|
.disabledSnippets {
|
||||||
color: grey;
|
color: grey;
|
||||||
|
|||||||
Reference in New Issue
Block a user