mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-09-27 08:24:57 -04:00
Show the garden card actions menu as three dots
Matches the planting rows, and gives the button an aria-label naming the garden. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1cbd089a4a
commit
8832a4284a
1 file changed
+3
@@ -26,6 +26,9 @@ export default function GardenCard({garden, defaultIconUrl, onPlant, highlighted
|
||||
<ActionsMenu
|
||||
id={`garden-${id}`}
|
||||
actions={actions}
|
||||
label={<i className="fa fa-ellipsis-v" aria-hidden="true" />}
|
||||
ariaLabel={`Actions for ${name}`}
|
||||
className="btn btn-sm btn-link actions-toggle-dots"
|
||||
onSelect={(action, event) => {
|
||||
if (action.key === 'plant' && onPlant && isPlainClick(event)) {
|
||||
event.preventDefault();
|
||||
|
||||
Reference in new issue
Block a user