Commit Graph
316 Commits
Author SHA1 Message Date
durstann 07114d50b9 resolve merge conflicts 2026-08-31 16:04:34 -07:00
durstann 119d3277a5 Make snippet elements buttons so they can be interacted with a keyboard. 2026-08-17 11:14:50 -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
Víctor Losada Hernández 3442c877f8 final touches to snippetbar breakpoints 2026-08-16 10:41:27 +02: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 bd2b7db5ab suggested change 2026-07-29 15:19:44 +02:00
Gazook89 caeeabc735 fixes to colors, and editor wrapping breakpoint. 2026-07-27 21:47:58 -05: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
Gazook89 fd6fd98fdc Add @components aliases to vite config
And update all the files to point to that directory to use the alias.
2026-07-11 17:41:49 -05:00
Gazook89 fe297a47b2 cleanup extra css
Remove some unused css rules that weren't cut before, and a little bit of rearranging to group "dropdown" stuff together and "tools" together.
2026-07-09 14:14:21 -05: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 794c2fa09d add disabled attribute to items. beta to status
Adds the `disabled` attribute to a menu-item button if it's disabled, not just as a className.  Styling changes centered on that as well.

Also changes the `beta` class to `status` because it is used for both `beta` and `disabled` indicators.  Styling changes for that.
2026-07-09 14:10:49 -05: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 416161e617 fix to previous commit. 2026-07-02 23:44:19 -05:00
Gazook89 3836150e42 hide arrows on snippetbar triggers, improve spacing
to decrease the width used for the snippet bar triggers, removed the down arrows (for the top level triggers only).  And, reduced the padding on the icons in the snippetbar while retaining it inside the menus.

The icons still align between the menu list and the menu trigger, but the text labels do not.
2026-07-02 23:40:01 -05:00
Gazook89 1861d036b9 add key to dropdown menuitem 2026-06-09 06:25:31 -05:00
Gazook89 c12a188196 Be sure snippet icon is getting passed in 2026-05-28 11:45:14 -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 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 15db3c9f66 lint client 2026-05-18 16:21:57 +02:00
Víctor Losada Hernández 3ca7f81ad7 hate having to edit this every time 2026-05-13 23:09:38 +02:00
Víctor Losada Hernández 0540479e09 crude basic animation and button 2026-05-13 21:55:53 +02:00
Gazook89 00efbb7244 fix state variable themeSelector 2026-04-26 21:09:18 -05:00
Gazook89 285522d820 all snippet buttons are actually buttons now 2026-04-23 22:56:29 -05:00
Gazook89 904b14af19 icons in triggers and menus are aligned. 2026-04-23 22:52:39 -05:00
Gazook89 0c78a23c76 remove testing menu 2026-04-23 22:28:21 -05:00
Gazook89 992b72ee6f empty menus styled as disabled 2026-04-23 22:17:52 -05:00
Gazook89andCopilot 8bebbdac5d restore styling to work with new structure.
Co-authored-by: Copilot <copilot@github.com>
2026-04-23 22:10:51 -05:00
Gazook89andCopilot 3b6c7acdbf snippet submenu triggers don't fire events onclick
Co-authored-by: Copilot <copilot@github.com>
2026-04-23 10:42:58 -05:00
Víctor Losada Hernández f863871173 move darkvision to library, and sort themes 2026-04-22 17:05:17 +02:00
Víctor Losada Hernández 0ed772b054 add back cm5-themes 2026-04-21 20:50:04 +02:00
Víctor Losada Hernández 9e72fad9e4 small changes 2026-04-13 23:29:40 +02:00
Víctor Losada Hernández 94080ba952 file org update 2026-03-27 19:53:49 +01:00
Víctor Losada Hernández 1f2a329553 darkbrewery 2026-03-27 19:49:00 +01:00
Víctor Losada Hernández 4bce4a9489 simplify fold export & restore legacy higlights 2026-03-27 19:11:52 +01:00
Víctor Losada Hernández ad9f4773b0 default cm5 theme back 2026-03-27 13:13:36 +01:00
Víctor Losada Hernández a00a3440fc undo & redo 2026-03-27 00:09:27 +01:00
Víctor Losada Hernández 456c149f7b themes working again 2026-03-25 17:15:23 +01:00
Víctor Losada Hernández 3388707dba small fix 2026-02-25 18:54:47 +01:00
Víctor Losada Hernández 543b64ccd2 themes when i coudl change them 2026-02-25 18:49:26 +01:00
Víctor Losada Hernández c096014871 shared folder (for markdown.js and helpers 2026-02-25 18:40:50 +01:00
Víctor Losada Hernández 17f6fbe033 themes folder 2026-02-25 18:34:35 +01:00
Víctor Losada Hernández d0265a9978 shared styles to alias 2026-02-25 18:30:44 +01:00
Víctor Losada Hernández 3e76046868 Revert "renamed client to src"
This reverts commit c28736bd01.
2026-02-01 17:36:53 +01:00
Víctor Losada Hernández c28736bd01 renamed client to src 2026-02-01 17:34:50 +01:00
Víctor Losada Hernández 4e6c3add5b change imports 2026-01-24 01:10:51 +01:00
Víctor Losada Hernández dbeff56ffa change legacy snippets to use named exports and move from dedent-tabs to dedent 2026-01-23 17:38:16 +01:00
Víctor Losada Hernández b72e5b9172 fix file imports 2026-01-23 17:18:03 +01:00