mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-08-06 08:57:38 +00:00
caret menu indicators work, point correct direction
This commit is contained in:
@@ -40,7 +40,7 @@ const Dropdown = ({ groupName, className = null, icon, children, color = null, i
|
|||||||
const trigger = (groupName)=>{
|
const trigger = (groupName)=>{
|
||||||
if(!customTrigger){
|
if(!customTrigger){
|
||||||
return <>
|
return <>
|
||||||
<span className='menu-name'>{groupName}</span>
|
<span className='menu-name'>{groupName}</span><i className={`caret fas fa-caret-${isSubMenu ? 'right' : 'down'}`}></i>
|
||||||
</>;
|
</>;
|
||||||
} else {
|
} else {
|
||||||
return customTrigger;
|
return customTrigger;
|
||||||
@@ -54,7 +54,6 @@ const Dropdown = ({ groupName, className = null, icon, children, color = null, i
|
|||||||
className={['menu-item', color, className].join(' ')}
|
className={['menu-item', color, className].join(' ')}
|
||||||
popoverTarget={menuId}
|
popoverTarget={menuId}
|
||||||
icon={icon}
|
icon={icon}
|
||||||
ismenu={{ caretDirection: isSubMenu ? 'right' : 'down' }}
|
|
||||||
aria-haspopup='menu'
|
aria-haspopup='menu'
|
||||||
role='menuitem'
|
role='menuitem'
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user