Commit graph

2257 commits

Author SHA1 Message Date
Eric Liu
03f3920383 test(dropdown): add more tests 2025-04-01 08:47:29 -07:00
Eric Liu
b3816606f6 test(context-menu): add unit tests 2025-04-01 08:47:29 -07:00
Eric Liu
7c916828f2 test: delete old files 2025-04-01 08:47:29 -07:00
Eric Liu
de0ff76c8f chore(scripts): fix lints 2025-03-30 09:08:20 -07:00
Eric Liu
5d02a13525 v0.88.4 2025-03-24 09:32:35 -07:00
Eric Liu
1a5f2d8e67
fix(list-box): correct button/description translations based on selection count (#2139)
The `ListBoxSelection` component now properly handles
translations for the clear button based on the selected items:

- Fix `buttonLabel` and `description` to use the same translation logic
- Add tests for custom translations in both `ComboBox` and `MultiSelect`
2025-03-23 11:28:06 -07:00
Eric Liu
9b61af0306
fix(list-box): set aria-disabled if disabled (#2125) (#2138)
Re-apply #2125 (reverted in #2130) to preserve `disabled` attribute.

Carbon styles depend on the `[disabled]` attribute. However, the `disabled`
attribute is not valid markup when applied to `div role="option"`. This PR
preserves the existing `disabled` attribute while also setting `aria-disabled`
to maintain accessibility.
2025-03-23 10:46:25 -07:00
Eric Liu
43511e09ec fix(text-area): allow visually hidden label (#2137)
This fixes an accessibility issue with `TextArea`.

Currently, if `hideLabel` is `true`, the label is not rendered at all.
The expected behavior is that it should be visually hidden while
still being available to screen readers.
2025-03-23 10:42:47 -07:00
Eric Liu
ca9beebaea
fix(radio-tile): allow standalone RadioTile usage (#2136)
Although `RadioTile` is meant to be used inside a `TileGroup`, it feels  
unpolished for standalone usage to crash due to a missing parent context.

This fixes `RadioTile` to fail open by providing a no-op `add: () => {}`  
when `TileGroup` context is not found.
2025-03-22 13:03:20 -07:00
Eric Liu
1462e300d6
fix(radio-button): forward focus, blur events (#2135)
As identified in #2131, `focus` and `blur` events should be
forwarded to the underlying `RadioButton` element.
2025-03-22 13:02:28 -07:00
Eric Liu
dd1338ffc4
fix(list-box-selection): fix aria-label for clear button (#2134)
`ListBoxSelection`, used by `MultiSelect` and `ComboBox`, currently  
applies the wrong `aria-label` for the clear selection button. It uses
the `translateId` (e.g., `"clearAll"`) instead of the user-friendly copy.
2025-03-22 12:59:16 -07:00
Eric Liu
c6c80d35a9 test: remove CSS import from set-up file 2025-03-20 17:34:20 -07:00
Eric Liu
95f6c97a57 test: remove old files 2025-03-20 17:34:20 -07:00
Eric Liu
d45409c7f3 test(grid): add unit tests 2025-03-20 17:34:20 -07:00
Eric Liu
f7ac0e3f22 test(progress-indicator): add unit tests 2025-03-20 17:34:20 -07:00
Eric Liu
1478486d8f test(password-input): add unit tests 2025-03-20 17:34:20 -07:00
Eric Liu
f200dadb97 test(multi-select): more unit tests 2025-03-20 17:34:20 -07:00
Eric Liu
0b799d64b7 test(dropdown): add unit tests 2025-03-20 17:34:20 -07:00
Eric Liu
3607c70070 test(skeleton-placeholder): add unit tests 2025-03-20 17:34:20 -07:00
Eric Liu
a4b10500a3 test(skeleton-text): add unit tests 2025-03-20 17:34:20 -07:00
Eric Liu
f5342d4b96 test(structured-list): add unit tests 2025-03-20 17:34:20 -07:00
Eric Liu
f89e9df8f0 test(expandable-tile): add unit tests 2025-03-20 17:34:20 -07:00
Eric Liu
490d3b42ea test(radio-tile): add unit tests 2025-03-20 17:34:20 -07:00
Eric Liu
6e62ce5416 test(time-picker): add unit tests 2025-03-20 17:34:20 -07:00
Eric Liu
ec7d798783 test(radio-button): add unit tests 2025-03-20 17:34:20 -07:00
Eric Liu
6dccd5cbe2 test(number-input): add unit tests 2025-03-20 17:34:20 -07:00
Eric Liu
eb413a1fba test(text-input): add unit tests 2025-03-20 17:34:20 -07:00
Eric Liu
e35a25de81 test(text-area): add unit tests 2025-03-20 17:34:20 -07:00
Eric Liu
7c436bd747 test(toast-notification): add unit tests 2025-03-20 17:34:20 -07:00
Eric Liu
7317192e90 test(inline-notification): add unit tests 2025-03-20 17:34:20 -07:00
Eric Liu
d67b3e0a84 docs(code-snippet): remove note on compatibility 2025-03-19 13:21:14 -07:00
Eric Liu
49d961bbb5 chore(changelog): add release notes for v0.88.3 [ci skip] 2025-03-19 13:08:24 -07:00
Eric Liu
0e082e4950 v0.88.3 2025-03-19 13:06:20 -07:00
Eric Liu
199bb0eb8e
Revert "fix(list-box): use aria-disabled instead of invalid disabled attribute" (#2130)
This reverts commit e1b3ef22c9.
2025-03-19 13:05:28 -07:00
Eric Liu
be9c13fbc6 v0.88.2 2025-03-19 12:52:48 -07:00
Eric Liu
86794dafe2 chore(examples): bump deps 2025-03-19 12:51:41 -07:00
Eric Liu
e7939ff0e2
fix(multi-select): fix keyboard navigation for disabled items (#2129)
Fixes #2128
2025-03-19 12:43:46 -07:00
Eric Liu
5987b61a55
fix(theme): remove invalid themes prop from markup (#2127) 2025-03-19 12:43:33 -07:00
Eric Liu
e85d7efc5e
fix(notification): remove invalid kind prop from markup (#2126) 2025-03-19 12:43:23 -07:00
Eric Liu
e1b3ef22c9
fix(list-box): use aria-disabled instead of invalid disabled attribute (#2125) 2025-03-19 12:43:05 -07:00
Eric Liu
c67e095eaf test(combo-box): more unit tests 2025-03-19 10:42:54 -07:00
Brian West
9e3d83031e
fix(combo-box): fix typing when refocusing input
Fixes a bug where the input `value` is immediately reset
when re-focusing the input. The `value` resetting is necessary
to support programmatically clearing the value, but it should
only execute if the input is not currently focused.
2025-03-19 10:29:13 -07:00
Eric Liu
0e1177f398 test(combo-box): add unit tests 2025-03-17 21:19:24 -07:00
Eric Liu
d25a85c825 test(popover): add unit tests 2025-03-17 19:27:40 -07:00
Eric Liu
8142c71307 test(slider): add unit tests 2025-03-17 19:27:40 -07:00
Eric Liu
a73000ffbe test(pagination): add unit tests 2025-03-17 19:27:40 -07:00
Eric Liu
6eda673aaf test(pagination-nav): add unit tests 2025-03-17 19:27:40 -07:00
Eric Liu
79d50b1a83 test(ordered-list): add unit tests 2025-03-17 19:27:40 -07:00
Eric Liu
b6b5579f67 test(unordered-list): add unit tests 2025-03-17 19:27:40 -07:00
Eric Liu
d64465e774 test(truncate): add unit tests 2025-03-17 19:27:40 -07:00