Christos Hrousis
449f5e6c7f
style: typo.
2021-10-10 13:24:28 +11:00
Christos Hrousis
34447a3f2f
test: migrate progress-ring tests to progress-bar
...
- Match coverage with progress-ring
- Attached titles/label/labelledby
- Value '' on aria-valuenow is does not pass AXE
2021-10-10 13:24:01 +11:00
Christos Hrousis
eee97d7dba
test: cover progress-ring
...
- Add title to make ring accessibly hoverable.
- Add label/labelledby as aria options.
- Remove ununsed label slot.
2021-10-10 13:05:40 +11:00
Cory LaViska
222235159b
rename clear => remove
2021-10-07 09:52:23 -04:00
Cory LaViska
1061bd5e0d
add disabled prop
2021-10-07 09:31:20 -04:00
Cory LaViska
ccec9a8348
fix initial disabled state
2021-10-07 09:30:47 -04:00
Cory LaViska
8d7bf97127
Merge branch 'next' of https://github.com/kanoni4567/shoelace into kanoni4567-next
2021-10-05 09:01:35 -04:00
Christos Hrousis
a75a71994a
test: component/spinner ( #556 )
...
- covers accessibility
- provides explainer for aria-busy and aria-live tags.
2021-10-05 08:53:28 -04:00
Shanyu Cui
7d1373a1d1
radio: emit sl-change when toggled via arrow keys
2021-10-04 23:27:28 -07:00
Cory LaViska
e12ee97bd9
add --padding to tab panel
2021-10-04 09:29:14 -04:00
Christos Hrousis
888ac2ea0d
test: first pass test.
...
- Cover use of header slot.
- Cover use of footer slot.
- Cover use of image slot.
2021-10-02 19:44:45 +10:00
Cory LaViska
eec24d2ed1
add sl-mutation-observer
2021-09-30 18:32:59 -04:00
Cory LaViska
8fa9d629a3
fix tag default
2021-09-30 17:42:34 -04:00
Cory LaViska
ef22dd7dc4
fix docs
2021-09-30 17:16:27 -04:00
Cory LaViska
4ad0480039
rename percentage => value
2021-09-30 09:02:28 -04:00
Cory LaViska
7188425ac0
fix animation bug
2021-09-30 08:40:21 -04:00
Cory LaViska
f2a4db6291
update docs, expose custom properties, rework to not use getComputedStyle
2021-09-30 07:51:28 -04:00
Denis
a4aff0b1e9
#550 added progress indicator to sl-range component
2021-09-30 11:20:39 +04:00
Cory LaViska
2f88c55ec0
fix default height
2021-09-29 09:40:56 -04:00
Narendra Sisodiya
8ac007ba9a
Removed lit-html and added lit ( #547 )
2021-09-29 08:40:26 -04:00
Cory LaViska
111fa8397c
fix default outline border
2021-09-29 08:38:43 -04:00
Cory LaViska
0ef4e92a96
add border
2021-09-29 08:35:43 -04:00
Cory LaViska
1b5dca52e3
add divider component
2021-09-29 08:03:03 -04:00
Christos Hrousis
bc3e9c43da
test: components/breadcrumb-item ( #541 )
...
* test: migrate skipped tests to the breadcrumb-item
* test: when rendering a HTMLAnchorElement
* test: add checks for classes.
* test: uplift langauge and query selector to test label part
* test: default button test
* refactor: set default for rel on prop declaration.
2021-09-28 08:27:19 -04:00
Cory LaViska
ded01cfd8a
fixes #544
2021-09-28 08:22:26 -04:00
Cory LaViska
c737b7494f
fix comments
2021-09-27 17:58:14 -04:00
Cory LaViska
47aff56e71
add panel border width token
2021-09-27 16:53:24 -04:00
Cory LaViska
15ce341d81
add filled tokens and update styles
2021-09-27 10:48:47 -04:00
Cory LaViska
e083b1a02e
revert luminance removal and rework surface tokens
2021-09-27 10:24:29 -04:00
Cory LaViska
fa74fc54e3
fix bg
2021-09-24 22:38:08 -04:00
Cory LaViska
b4192364f6
Merge branch 'test/breadcrumb' of https://github.com/christoshrousis/shoelace into christoshrousis-test/breadcrumb
2021-09-24 22:30:16 -04:00
Cory LaViska
c7dc82947f
add filled variant
2021-09-24 22:28:14 -04:00
Christos Hrousis
c38fd3986c
test: uplift sepcificity of aria test, and test separator.
2021-09-25 12:12:50 +10:00
Christos Hrousis
35d7926e18
test: first pass test for breadcrumb
2021-09-25 11:41:00 +10:00
Christos Hrousis
86e06ce1e6
test: start the breadcrumb test.
2021-09-25 11:41:00 +10:00
Cory LaViska
1a08f063a6
add outline buttons; closes #522
2021-09-24 16:40:03 -04:00
Cory LaViska
521f6fe3f1
update test
2021-09-24 09:18:28 -04:00
Christos Hrousis
898179b645
test: components/avatar ( #529 )
...
* test: introduce first pass test for components/avatar
feat: set alt="" on img element
* test: resolve img src 404 errors
* test: remove bad test
* test: test children by assigning nodes...
* test: add patches similar to badge patch
* style: address typing issues.
2021-09-24 08:56:08 -04:00
Cory LaViska
8c3888da02
add control part to select
2021-09-24 08:48:01 -04:00
Cory LaViska
e1471ec9a1
change default dropdown distance
2021-09-24 08:31:54 -04:00
Cory LaViska
8ab2907c3f
update components to use surface tokens
2021-09-23 08:53:05 -04:00
Cory LaViska
0dd9483797
remove bogus space
2021-09-22 15:35:26 -04:00
Cory LaViska
42595f241f
fix test
2021-09-20 23:20:29 -04:00
Cory LaViska
c67c84dfda
simplify math
2021-09-20 23:14:39 -04:00
Cory LaViska
2ba6a3b097
remove unused style
2021-09-20 22:33:17 -04:00
Cory LaViska
54fc41e175
update to lit 2.0
2021-09-20 22:01:21 -04:00
Christos Hrousis
c025208bf5
test: first pass for badge test
2021-09-20 18:11:00 +10:00
Cory LaViska
bba41402aa
update progress ring to use CSS
2021-09-17 18:15:13 -04:00
Cory LaViska
e1f129abc5
improve spinner animation and API
2021-09-17 17:48:44 -04:00
Cory LaViska
4b07ee40a7
fixes #523
2021-09-12 19:57:48 -04:00
Cory LaViska
ba3117f435
fix comment
2021-09-09 09:13:29 -04:00
Cory LaViska
2d89fc945f
remove elevation
2021-09-08 17:04:12 -04:00
Cory LaViska
7b1f99b41a
update t-shirt tokens
2021-09-08 09:51:31 -04:00
Cory LaViska
14368c4ce2
Fix comment
2021-09-06 19:22:02 -04:00
Cory LaViska
e74838fdc1
adjust default button elevation
2021-09-03 10:06:09 -04:00
Cory LaViska
613f4b6440
remove icon dep; improve copy animation
2021-09-03 08:21:16 -04:00
Cory LaViska
1bfa4c6ba8
reduce size
2021-09-03 08:09:07 -04:00
Cory LaViska
f5ba173156
add breadcrumb + breadcrumb item
2021-09-01 09:06:19 -04:00
Cory LaViska
00bf318ee9
prevent errors when setting controls undefined
2021-08-30 08:27:47 -04:00
Sidharth Ramesh
da3415d029
Prevents error if sl-input has value undefined ( #513 )
...
The sl-input's value state being `undefined` is very common when using shoelace with frameworks. Instead of erroring out and not showing the input, this should handle it gracefully.
2021-08-30 08:25:25 -04:00
Cory LaViska
a1d354ac15
remove unused import
2021-08-27 16:45:33 -04:00
Cory LaViska
f4c472e7de
remove --focus-ring
2021-08-27 09:07:42 -04:00
Cory LaViska
719d62b670
fix spacing in select clearable
2021-08-27 09:03:10 -04:00
Cory LaViska
165306f56a
remove no-fieldset; add fieldset
2021-08-27 09:00:01 -04:00
Cory LaViska
248bb32977
fix radio focus visible styles
2021-08-27 08:54:00 -04:00
Cory LaViska
dfb9127052
fix checkbox/switch focus visible
2021-08-27 08:50:31 -04:00
Cory LaViska
5933e948e1
fix checkbox focus visible
2021-08-27 08:38:11 -04:00
Cory LaViska
624f6ef5a1
fix arrow keys
2021-08-27 08:26:48 -04:00
Cory LaViska
2865b546fa
add --sl-focus-ring and update styles
2021-08-27 08:21:18 -04:00
Cory LaViska
9d7c3b2af9
no need to force focus
2021-08-27 08:20:26 -04:00
Cory LaViska
033896dfc2
adjust default button
2021-08-27 08:20:07 -04:00
Cory LaViska
43f74583ea
rework focus-visible logic
2021-08-26 08:35:36 -04:00
Cory LaViska
4c6e61e6dd
improve switch contrast
2021-08-25 17:57:52 -04:00
Cory LaViska
0829af77c0
fix --sl-color-neutral-0|1000
2021-08-25 17:48:37 -04:00
Cory LaViska
f9010cf3ca
add date to input
2021-08-24 08:13:36 -04:00
Cory LaViska
9c0641dcad
fixes #508
2021-08-23 09:11:40 -04:00
Cory LaViska
27376df5f2
improve color picker
2021-08-23 08:50:18 -04:00
Cory LaViska
51dbc1a1ee
remove elevation when inline
2021-08-20 17:00:07 -04:00
Cory LaViska
7095236116
fix whitespace
2021-08-20 14:19:19 -04:00
Cory LaViska
c41714c6f3
fix menu selection via type to select
2021-08-20 09:55:32 -04:00
Cory LaViska
0a45f446e2
Merge branch 'fix/ctrlkeys-usability-sl-select' of https://github.com/gtyamamoto/shoelace into gtyamamoto-fix/ctrlkeys-usability-sl-select
2021-08-20 09:38:57 -04:00
gtyamamoto
767c0b3675
fix: allow ctrl/command + key when the sl-select is on focus
...
- doing a more simplistic approach to handle ctrlKey/metaKey values
2021-08-20 09:20:01 -03:00
gtyamamoto
066f7cfa08
fix: allow ctrl/command + key when the sl-select is on focus
2021-08-19 17:21:18 -03:00
Cory LaViska
e339571ce0
fix menu bug
2021-08-19 09:34:08 -04:00
Cory LaViska
fb48c4cf0e
remove ref attr
2021-08-18 18:17:58 -04:00
Cory LaViska
6d03f12e54
improve contrast; fixes #128
2021-08-18 17:54:35 -04:00
Cory LaViska
be5bbe95b6
change default effect to 'none'
2021-08-18 17:30:51 -04:00
Cory LaViska
6607cdb0bd
remove extra comment
2021-08-17 17:04:57 -04:00
Cory LaViska
b35d5e9914
update examples and changelog
2021-08-16 17:05:28 -04:00
Rafael Rossini
5eac4ebee8
Add prefix and suffix slot to sl-select component ( #501 )
...
* Add prefix and suffix slot to sl-select component
* Adding align-items: center in prefix/suffix and changing documentation to showcase using as visual aids
2021-08-16 16:30:55 -04:00
Cory LaViska
d81db3fd4b
remove unused style
2021-08-12 08:39:06 -04:00
Cory LaViska
94f4d652b4
remove focus ring color tokens
2021-08-10 17:53:15 -04:00
Cory LaViska
5aab7c34e6
fix radio group focus bug
2021-08-10 17:24:52 -04:00
Cory LaViska
72eff3754f
emit on left/right
2021-08-10 17:13:21 -04:00
Cory LaViska
3bb8614143
use fixture types consistently
2021-08-10 17:11:07 -04:00
Cory LaViska
2b12a47915
merge changes
2021-08-10 17:10:50 -04:00
Benny Powers
9216e72a3e
fix: emit sl-change from radio and switch on user interaction only
2021-08-10 18:53:15 +03:00
Benny Powers
9b99a92dc1
fix: emit sl-change from checkbox on user interaction only
...
fixes #497
2021-08-10 18:53:15 +03:00
Cory LaViska
75f2da3547
prettier
2021-08-10 10:57:24 -04:00
Cory LaViska
6c9a25a0c7
Merge branch 'theming' into next
2021-08-10 10:56:27 -04:00
Benny Powers
34db96822b
Add `href` etc to sl-icon-button ( #496 )
...
* perf: only calculate the used button template
* feat: add href and friends to icon-button
closes #495
2021-08-10 10:52:17 -04:00
Cory LaViska
3189c6fe98
change -0 -1000 to --sl-color-neutral-0|1000
2021-08-06 09:37:16 -04:00
Cory LaViska
9dbee4c686
add neutral color palette
2021-08-06 08:32:46 -04:00
Cory LaViska
6766af0f9d
fix focus ring styles
2021-08-05 17:59:58 -04:00
Cory LaViska
3d1f858301
black/white => empty/full
2021-08-05 17:42:12 -04:00
Cory LaViska
21de0db790
use color scale
2021-08-05 17:17:44 -04:00
Cory LaViska
ad35df2a17
use rgb primitives for color tokens to support alpha
2021-08-05 08:27:58 -04:00
Cory LaViska
68f40ed779
use token for track color
2021-08-03 17:23:17 -04:00
Cory LaViska
6aa31e612a
more contrast for avatars
2021-08-03 07:37:17 -04:00
Cory LaViska
6d9018627e
fix transparent bg styles
2021-08-03 07:36:56 -04:00
Cory LaViska
28b0e74e04
semibold labels
2021-08-03 07:35:55 -04:00
David Gonzalez
b13e2c32ff
Simplify switch thumb calc ( #490 )
2021-07-28 09:03:22 -04:00
Cory LaViska
807cba18d1
fix type to select bug
2021-07-26 08:23:46 -04:00
Cory LaViska
e938f94ffc
add console error
2021-07-26 08:20:18 -04:00
Cory LaViska
1a6c1ed1c3
fixes #480
2021-07-16 10:16:02 -04:00
Cory LaViska
3541540d84
fix grid handle drag behavior
2021-07-13 07:55:49 -04:00
Cory LaViska
002f847165
remove unused rule
2021-07-13 07:12:55 -04:00
Cory LaViska
b98e1f6b20
fix radio group tabbing
2021-07-12 10:48:38 -04:00
Cory LaViska
4aeb804441
auto import dependencies
2021-07-12 10:36:06 -04:00
Cory LaViska
383e039297
sass => lit styles
2021-07-09 20:45:44 -04:00
Cory LaViska
1c98a831d8
use roving tab index for menu
2021-07-08 17:23:47 -04:00
Cory LaViska
ffcdf4462b
fixes #477
2021-07-07 08:30:31 -04:00
Cory LaViska
22cfc82d35
remove unnecessary bindings
2021-07-07 08:13:27 -04:00
Cory LaViska
83fbe9eccc
remove unnecessary bindings
2021-07-07 08:13:07 -04:00
Cory LaViska
9a89c14e20
improve tabbable logic
2021-07-07 07:59:06 -04:00
Cory LaViska
0b9da0b049
fix comment
2021-07-06 17:56:19 -04:00
Cory LaViska
6fd5a97fde
fix boolean true prop
2021-07-01 17:23:16 -04:00
Cory LaViska
cb3d76889d
improve sl-animation
2021-07-01 09:34:00 -04:00
Cory LaViska
2ea5b65cb8
remove redundant types
2021-06-30 20:04:46 -04:00
Cory LaViska
d6eeacbdc1
fix focus trap when open on init
2021-06-28 16:49:56 -04:00
Cory LaViska
47c932bd46
fix incorrect types
2021-06-28 09:26:55 -04:00
Cory LaViska
cc7ab8f7c4
fix bad type
2021-06-28 09:25:47 -04:00
Cory LaViska
6883851866
don't use inferred types for analyzer
2021-06-28 09:23:39 -04:00
Cory LaViska
12b0365ce0
hide private methods
2021-06-25 20:07:22 -04:00
Cory LaViska
e31a05beb0
Merge branch 'next' into metadata
2021-06-25 19:40:12 -04:00
Cory LaViska
a28942f264
use @watch and reorder handlers
2021-06-25 19:22:05 -04:00
Cory LaViska
af61f45ecb
fixes #473
2021-06-25 19:02:34 -04:00
Cory LaViska
0da9955403
Add dashes back to metadata
2021-06-25 16:25:46 -04:00
Cory LaViska
d0b9488c1c
switch to custom elements manifest analyzer
2021-06-24 18:24:54 -04:00
Cory LaViska
698962e0ea
fix tests
2021-06-23 09:14:58 -04:00
Cory LaViska
1c010ffe5a
add sl-request-close event
2021-06-21 09:40:11 -04:00
Cory LaViska
94fe4f1f46
remove { waitUntilFirstUpdate } when not needed
2021-06-18 08:51:00 -04:00
Cory LaViska
de9d43f67a
fixes #468
2021-06-18 08:36:24 -04:00
Cory LaViska
301c58d6fb
add initial tests
2021-06-18 08:34:42 -04:00
Cory LaViska
a14dd95c21
assign certain props as properties
2021-06-17 16:45:49 -04:00
Cory LaViska
19f7918435
remove comments
2021-06-17 16:44:53 -04:00
Cory LaViska
1e4de5f821
fixes #455
2021-06-16 08:42:02 -04:00
Cory LaViska
45f4b33eb1
add select sl-change test
2021-06-15 09:36:45 -04:00
Cory LaViska
16e7287c24
rework @watch decorator
2021-06-15 09:26:35 -04:00
Cory LaViska
3b2b5eed5a
add test for sl-include
2021-06-15 09:11:04 -04:00