275 Commits
Author SHA1 Message Date
durstann 2be7649178 Prefer position at the start of a tab insertion for the new cursor position. 2026-09-01 22:52:22 -07:00
Víctor Losada Hernández 4ddc409129 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into add-cm-features 2026-08-16 17:16:38 +02:00
Gazook89 eddc1421b2 Merge branch 'master' into Accessible-Dropdowns 2026-08-15 12:05:00 -05:00
Gazook89 88720aadce add initial-value 2026-08-15 12:02:58 -05:00
Víctor Losada Hernández 98d579fc8a Merge branch 'master' into Accessible-Dropdowns 2026-07-29 18:38:57 +02:00
Víctor Losada Hernández 702fa6fe5c simple fix 2026-07-26 20:44:50 +02:00
Víctor Losada Hernández 9c0eb5f3a9 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into add-cm-features 2026-07-26 11:20:38 +02:00
Víctor Losada Hernández 5dff482920 Merge branch 'master' into add-back-selection-tabbing 2026-07-26 11:07:21 +02:00
Gazook89 5d67d48436 Add custom properties to dropdown.less
Adds registered custom properties to the dropdown menus, which can be set in another stylesheet at any level (either on the direct element or on an ancestor) or use the default values given.
2026-07-09 14:13:22 -05:00
Gazook89 c5db25f076 set a relative color on menu triggers when open 2026-07-08 23:36:08 -05:00
Gazook89 6f1ad35492 add aria labels to items 2026-07-08 23:35:45 -05:00
Gazook89 5c4d498a99 add contain: content
tiny change for tiny performance
2026-07-08 22:26:37 -05:00
Gazook89 2e3f69b478 Remove unnecessary styling on .menu-wrapper
The styling in the dropdown.less file targeting `.menu-wrapper` was not doing anything.  Double checked on old firefox, too, in case it was needed for oddbird polyfill.
2026-07-08 22:09:25 -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 5c50f35570 Merge branch 'master' into Better-Dropdowns 2026-07-02 23:08:37 -05:00
Gazook89 b791bcefdb revert the work done in earlier commit with anchor properties
revert commit 1fe19578c2 which changed `anchor()` values to `position-area`.

I'm not sure what compelled me to do that change initially, except the easier to understand syntax.  Hopefully it wasn't important.

But oddbird polyfill expects `anchor()` values, which it converts to pixel values for positioning.
2026-07-02 22:53:33 -05:00
Víctor Losada Hernández db572c8fea small changes to single line formatting 2026-06-24 18:44:29 +02:00
Víctor Losada Hernández e554687392 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into add-cm-features 2026-06-17 18:57:58 +02:00
Víctor Losada Hernández c9da8742eb adding comments, removing leftover code, renaming constant 2026-06-16 10:23:58 +02:00
Víctor Losada Hernández 2ab7c63853 add clarification comment 2026-06-15 23:18:00 +02:00
Víctor Losada Hernández fd86561c7f putting the animation under a @media query 2026-06-15 23:17:45 +02:00
G.Ambatte e7ec8a2174 Initial attempt at bug fix 2026-06-14 22:34:07 +12:00
Gazook89 1fe19578c2 change anchor method
This updates the position try results by using a different method of setting the area of the anchored element.  Rather than using the inset properties with `anchor()`, it uses `position-area`.
2026-06-10 16:28:34 -05:00
Víctor Losada Hernández 1558a14a91 add formatting options plus single delcaration rule encapsulating 2026-06-02 15:40:40 +02:00
Víctor Losada Hernández 0335767afa remove logs 2026-06-02 15:17:14 +02:00
Víctor Losada Hernández 6a51116844 format 2026-06-02 15:17:03 +02:00
Víctor Losada Hernández d440c7c651 propert tab behavior this time(i hope) 2026-06-02 15:15:51 +02:00
Gazook89 a3469a172a Move tests to tests/components directory 2026-05-29 15:58:00 -05:00
Gazook89 cf8f809eec Cleanup some loose ends. 2026-05-29 15:57:41 -05:00
Gazook89 fa07af2d82 Add tests for the Dropdown structure and behavior
Largely this is written by an LLM after I provided the targets, and I've looked through the tests themselves to confirm they are accurate.  There may be improvements in how to actually *set up* the tests, though, as I am less familiar with those.

This has two test suites:  the first for html structure, the second for behavior.  Each of them calls another script that provides helper functions for setting things up and taking them down.  This keeps the test suites themselves fairly lean.
2026-05-29 11:08:05 -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 5e122626d4 Merge branch 'master' into Better-Dropdowns 2026-05-27 22:22:34 -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
Víctor Losada Hernández 823786f865 add secondary keybind 2026-05-23 11:52:44 +02:00
Víctor Losada Hernández 0661dac099 uh oh forgot this 2026-05-23 11:47:47 +02:00
Víctor Losada Hernández 2078ba70bd lint 2026-05-23 11:45:44 +02:00
Víctor Losada Hernández 03564b310f Merge branches 'add-cm-features' and 'master' of https://github.com/naturalcrit/homebrewery into add-cm-features 2026-05-23 11:44:33 +02:00
Víctor Losada Hernández 7a0348536c fix image request going crazy 2026-05-23 09:18:04 +02:00
Víctor Losada Hernández 21bd824bce undo conflict resolution 2026-05-23 08:57:09 +02:00
Víctor Losada Hernández 82a78f227d revert conflict resolution 2026-05-23 08:56:36 +02:00
Víctor Losada Hernández 5b1c694447 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into add-cm-features 2026-05-21 00:37:33 +02:00
Víctor Losada Hernández 15df8f2a22 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into add-image-preview 2026-05-21 00:34:58 +02:00
Víctor Losada Hernández 15db3c9f66 lint client 2026-05-18 16:21:57 +02:00
Víctor Losada Hernández 074af5e8e0 more solid block tokenizing 2026-05-16 16:28:53 +02:00
Víctor Losada Hernández 16948f451f add a comment 2026-05-14 11:08:09 +02:00
Víctor Losada Hernández 72dc1a6b46 format selection if selected 2026-05-13 22:57:06 +02:00
Víctor Losada Hernández 0540479e09 crude basic animation and button 2026-05-13 21:55:53 +02:00