Wykres commitów

14 Commity (a40d2ca1b5edc34b80499eebba3a71ebb3bda2c4)

Autor SHA1 Wiadomość Data
Konnor Rogers 5fa62bc5bf
Fix improper tag references in sl-select (#2287)
* fix improper tag references in sl-select

* update changelog

* prettier

* remove cem

* update changelog

* update changelog
2024-11-26 16:28:14 -05:00
Konnor Rogers 4f78930e99
add more resilient lazy loading to sl-select (#2204)
* add more resilient lazy loading to sl-select

* prettier

* add more resilient lazy loading to sl-select

* remove unnecessary assertions

* remove unnecessary assertions

* fix bad logic

* prettier

* add changelog entry

* prettier
2024-10-10 13:40:15 -04:00
lindsaym-fa d0441f53ce update sl-select suffix example 2024-07-29 14:13:55 -04:00
Nic Newdigate dbd4ba835b Select component: add a suffix to .form-control-input 2024-06-11 17:22:14 +01:00
YassSSH caf47069c0
Fixing the initial values on doc (#1785)
This commit replaces the string-based 'value' prop with an array in the documentation example related to multiple selection in Shoelace's React components.
2024-01-23 10:45:48 -05:00
Cory LaViska a4fc1c5b44
Submenus (#1527)
* [RFC] Proof-of-concept commit for submenu support

This is a Request For Comments to seek directional guidance towards
implementing the submenu slot of menu-item.

Includes:
- SubmenuController to manage event listeners on menu-item.
- Example usage in menu-item documentation.
- Trivial tests to check rendering.

Outstanding questions include:
- Accessibility concerns. E.g. where to handle 'ArrowRight',
  'ArrowLeft'?
- Should selection of menu-item denoting submenu be possible or
  customizable?
- How to parameterize contained popup?
- Implementation concerns:
  - Use of ref / id
  - delegation of some rendering to the controller
  - What to test

Related to [#620](https://github.com/shoelace-style/shoelace/issues/620).

* Update submenu-controller.ts

Removed extraneous `console.log()`.

* PoC working of ArrowRight to focus on submenu.

* Revert "PoC working of ArrowRight to focus on submenu."

(Didn't mean to publish this.)

This reverts commit be04e9a221.

* [WIP] Submenu WIP continues.

- Submenus now close on change-of-focus, not a timeout.
- Keyboard navigation support added.
- Skidding fix for better alignment.
- Submenu documentation moved to Menu page.
- Tests for accessibility, right and left arrow keys.

* Cleanup: Removed dead code and dead code comments.

* style: Eslint warnings and errors fixed. npm run verify now passes.

* fix: 2 changes to menu / submenu on-click behavior:

1. Close submenu on click explicitly, so this occurs even if the menu is
   not inside of an sl-dropdown.

2. In menu, ignore clicks that do not explicitly target a menu-item.
   Clicks that were on (e.g. a menu-border) were emitting select events.

* fix: Prevent menu's extraneous Enter / space key propagation.

Menu's handleKeyDown calls item.click (to emit the selection).
Propagating the keyboard event on Enter / space would the cause re-entry
into a submenu, so prevent the needless propagation.

* Submenu tweaks ...

- 100 ms delay when opening submenus on mouseover
- Shadows added
- Distance added to popup to have submenus overlap menu slightly.

* polish up submenu stuff

* stay highlighted when submenu is open

* update changelog

* resolve feedback

---------

Co-authored-by: Bryce Moore <bryce.moore@gmail.com>
2023-08-21 17:26:41 -04:00
Cory LaViska 402a00dcd3 update docs 2023-08-18 12:05:22 -04:00
nathan 621aa4362b Add HTMLElement to the getTag() return type 2023-08-18 09:17:02 -06:00
nathan 9520e850dd Update for path changes
see 3a61d20d93
2023-08-17 11:34:25 -06:00
Cory LaViska c743561c25 update docs 2023-08-14 10:23:59 -04:00
Alexander Krolick e73e32fb71
Add docs on setting multiple values in select (#1508) 2023-08-14 10:21:52 -04:00
Cory LaViska 1383ea3fe8
React import paths (#1507)
* fix react imports in examples

* move types to definition files

* update changelog

* update changelog
2023-08-11 13:09:44 -04:00
Konnor Rogers 31ef2f7929
remove side-effects key, update React docs for cherry-picking (#1485)
* remove side-effects, update React docs for cherry-picking

* prettier

* add PR #

* prettier

* fix react import paths

* Update docs/pages/frameworks/react.md

Co-authored-by: Cory LaViska <cory@abeautifulsite.net>

* add colons to imports

---------

Co-authored-by: Cory LaViska <cory@abeautifulsite.net>
2023-08-07 13:20:34 -04:00
Cory LaViska de5ad1b1b9 new docs 2023-06-06 08:22:18 -04:00