Víctor Losada Hernández
b065db4b5b
fix first render not working
2026-10-02 10:46:32 +02:00
Víctor Losada Hernández
50e77d3ba8
fix dropdown
2026-10-02 10:25:08 +02:00
Víctor Losada Hernández
d3c186aa5f
fix historyversion
2026-09-30 22:05:37 +02:00
Víctor Losada Hernández
8a372c1454
lint js
2026-09-28 17:34:12 +02:00
Gazook89
6f1ad35492
add aria labels to items
2026-07-08 23:35:45 -05:00
Gazook89
8e720d1c60
Set html structure to ul/li. Set roles.
...
The snippets are a `menubar` in terms of role, and is a list of items (`menitem`, `li`).
Note for myself: submenus are `menu` roles that immediately follow their triggering `menuitem` and are direct children of the parent `menu`, per WCAG. This is done in this commit.
2026-07-08 22:06:00 -05:00
Gazook89
cf8f809eec
Cleanup some loose ends.
2026-05-29 15:57:41 -05:00
Gazook89
f716c390b9
Add some defaults to dropdown
2026-05-29 10:54:58 -05:00
Gazook89
13196941eb
popovertarget is typically not camelcase in html
2026-05-28 11:43:33 -05:00
Gazook89
3110d2cc69
Add icons to menu triggers
...
This fixes the odd alignments of menu-wrapper names by ensuring that both menuitems and menu-wrappers (actually their child triggers) both have space for icons.
2026-05-28 11:43:05 -05:00
Gazook89
2e4439c9f4
Remove ID collisions on repeated menu names
...
Add React `useId()` method, safely stripped of invalid characters for use in CSS/HTML, to make each trigger/menu unique to avoid collisions.
2026-05-28 11:41:27 -05:00
Gazook89
612614fa12
menu items dismiss menu on click by default
...
Unless a menu item has the `no-dismiss` attribute (set to either `''` or `'true'`), clicking a menu item will dismiss the menu. Clicking a submenu trigger will not dismiss the menu.
The `no-dismiss` attribute must take a string, either empty or `'true'` because react doesn't allow boolean custom attributes.
2026-05-27 22:21:28 -05:00
Gazook89
d368e53b30
add some comments
2026-04-26 10:44:52 -05:00
Gazook89
5b11827c56
fix disabled attribute
2026-04-25 23:33:04 -05:00
Gazook89 and Copilot
d686c78fdf
fix oddbird polyfill so custom properties are used correctly
...
Co-authored-by: Copilot <copilot@github.com >
2026-04-25 22:16:25 -05:00
Gazook89
359d87440b
add oddbird polyfill - not quite working
...
Not quite working yet. polyfill is loaded, but positioned elements are spanning whole viewport. Parking this for now.
2026-04-24 22:06:52 -05:00
Gazook89
87ed5d107d
add jsdoc documentation.
2026-04-24 20:32:05 -05:00
Gazook89
c0c4db95a4
remove id attribute from component
2026-04-24 10:19:16 -05:00
Gazook89
904b14af19
icons in triggers and menus are aligned.
2026-04-23 22:52:39 -05:00
Gazook89
992b72ee6f
empty menus styled as disabled
2026-04-23 22:17:52 -05:00
Gazook89 and Copilot
8bebbdac5d
restore styling to work with new structure.
...
Co-authored-by: Copilot <copilot@github.com >
2026-04-23 22:10:51 -05:00
Gazook89
4f953da0fe
caret menu indicators work, point correct direction
2026-04-23 10:54:27 -05:00
Gazook89 and Copilot
2232d5265f
Add basic nesting dropdown component
...
Co-authored-by: Copilot <copilot@github.com >
2026-04-23 10:21:52 -05:00