Wykres commitów

41 Commity (next)

Autor SHA1 Wiadomość Data
Konnor Rogers f256d7aa8a
Implement roving tabindex for tabs (#2041)
* implement roving tabindex tabs

* implement roving tabindex tabs

* prettier

* implement roving tabindex tabs

* prettier

* remove test.only

* remove unncessary syncing

* Fix manual tab activations not working with roving tabindex

* prettier

* remove unnecessary extra code

* update changelog

* update changelog

* prettier
2024-05-30 12:49:13 -04:00
Danny Andrews c6da4f5b14
Update docs for customizing button widths (#1973)
Currently, the docs state that you can set a width attribute to
customize the width of buttons, but no such attribute exists. I've
updated the docs to direct people to set a custom width via CSS through
inline styles or a custom class.
2024-04-11 12:32:54 -05:00
stefanholzapfel 6e288a80a3
feat(sl-popup): Add contextElement property to VirtualElement interface (#1874) 2024-02-20 13:44:53 -05:00
Cory LaViska e6d3d8317a
Add checkbox help text (#1860)
* add help text to sl-checkbox to match sl-switch

* add missing import
2024-02-08 14:51:00 -05:00
clintcs 9451c3b8de
add switch help text (#1800) 2024-02-08 12:54:21 -05: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 eb39610a46
fixes #1779 (#1828) 2024-01-23 10:17:16 -05:00
Cory LaViska 1710cfb8bc update; #1700 2023-12-06 17:06:18 -05:00
Cory LaViska 0d043767ec Merge branch 'menu-item-loading' of github.com:mitchray/shoelace into next 2023-12-06 13:57:49 -05:00
Cory LaViska e2b7327d98
Improve tooltip accessibility (#1749)
* always close on escape, even when not focused; #1734

* use fallbacks instead of defaults

* add words

* add safe trapezoids / hover bridge; fixes #1734

* oh, webkit

* remove unused import

* cleanup just in case
2023-12-01 10:02:46 -05:00
Matt Obee 4699f99107
Fix 'controlled' typo (#1735) 2023-11-20 19:45:10 -05:00
Rikard Kling 025da5e59f
Small typo (#1728) 2023-11-20 17:09:09 -05:00
Mitch Ray 468b0b9e66 Add loading attribute to menu-item 2023-11-03 08:12:27 +11:00
Cory LaViska eb96e3db4b fix details example 2023-10-19 09:39:13 -04:00
Cory LaViska 54923edd22 update default 2023-10-16 12:41:22 -04:00
John F Morton 6ef246c575
Update carousel.md to document the default aspect ratio of 16/9. (#1617) 2023-10-16 12:35:00 -04:00
Cory LaViska 9b969339a1 fixes #1576 2023-09-25 09:08:04 -04:00
Cory LaViska 24f7b190f7 fix words; #1578 2023-09-25 09:01:24 -04:00
mfocqueteau a41e4e8928
Fixed typo (Alert doc): "take affect" -> "take effect" (#1578)
One of the examples given in the documentation for Alerts says "Settings will take **affect** on next login". Which is a typo since affect is a verb, not a noun.
2023-09-25 08:59:51 -04: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
Cory LaViska c36df5ecc1
<sl-copy> (#1483)
* copy updates

* Update docs/pages/components/copy.md

Co-authored-by: Thomas Allmer <d4kmor@gmail.com>

* unwrap and fix case

* copy button updates

* use bs icon

* add parts, hoist, and improve parsing a bit

* update docs

* remove comment

---------

Co-authored-by: Thomas Allmer <d4kmor@gmail.com>
2023-08-11 10:27:34 -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 b7acb27c98 Revert "feat(clipboard): add new component sl-clipboard (#1473)"
This reverts commit 16f3e256b0.
2023-08-02 15:35:11 -04:00
Thomas Allmer 16f3e256b0
feat(clipboard): add new component sl-clipboard (#1473)
* feat(clipboard): add new component sl-clipboard

* using slots

* using a single copyStatus

* feat(clipboard): support inputs/textarea/links and shadow dom

* fix(clipboard): add area-live to announce copied

* feat(clipboard): support any component with a value property
2023-08-01 13:53:11 -04:00
Cory LaViska a067ccb9e0 fix docs 2023-07-27 12:39:44 -04:00
Cory LaViska 5016d27af7 remove test because we can't reliably suppress retargeted clicks 2023-07-18 13:11:08 -04:00
Cory LaViska 0b6c3a46cf
Quick fixes (#1458)
* update base path docs

* fix examples

* fix broken CEM data in <sl-popup>

* Update docs/pages/getting-started/installation.md

Co-authored-by: Lindsay M <126139086+lindsaym-fa@users.noreply.github.com>

---------

Co-authored-by: Lindsay M <126139086+lindsaym-fa@users.noreply.github.com>
2023-07-17 14:05:17 -04:00
Cory LaViska a2e58b7696 fix link 2023-07-17 10:05:00 -04:00
Cory LaViska e8634e4178
Popup virtual elements (#1449)
* 1433: POC for comments (+ fix build.watch())

* 1433: consolidate virtualAnchor into anchor

* add virtual element examples

* update changelog

---------

Co-authored-by: Marko <marko@modelcitizen.com>
2023-07-13 16:49:57 -04:00
Cory LaViska 2cce87deeb add links 2023-07-03 15:50:58 -04:00
Evan Harrison afca2ad2e0
change carousel docs to use correct attr name, slides-per-page (#1415) 2023-07-03 11:14:15 -04:00
Konnor Rogers 67cbb85682
Add support for svg sprites in `<sl-icon>` (#1374)
* wip: initial implementation for review

* icon testing

* feat: add the ability to use SVG sprite sheets

* finish up spritesheets

* add icon notes

* update plopfile, add changelog entry

* prettier

* linting

* linting

* fix icon test

* eslint fixes?

* prettier

* disable eslint -.-

* linting loop!

* linting loop!

* prettier

* prettier

---------

Co-authored-by: Diego <diego@trebellar.com>
2023-06-20 14:01:58 -04:00
Cory LaViska dc63f858b0 fix typo 2023-06-08 15:41:03 -04:00
Cory LaViska b8b6175a64 works with a 24 second docs refresh 😕 2023-06-06 09:21:07 -04:00
Cory LaViska de5ad1b1b9 new docs 2023-06-06 08:22:18 -04:00