Commit graph

2274 commits

Author SHA1 Message Date
Eric Liu
f755422f81 build(deps-dev): address vulns 2025-04-12 16:03:53 -07:00
dependabot[bot]
e4bfd9fe28 build(deps-dev): bump vite from 5.4.14 to 5.4.18
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.14 to 5.4.18.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.18/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.18/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 5.4.18
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-12 16:00:29 -07:00
Eric Liu
11246f6521 test(selectable-tile): add unit tests 2025-04-12 15:59:52 -07:00
Eric Liu
892f35aef3 test: delete old test files 2025-04-12 15:59:52 -07:00
Eric Liu
dd41c977ed perf(to-hierarchy): optimize to use single-pass approach 2025-04-12 15:59:16 -07:00
Eric Liu
a514f284e6 test(to-hierarchy): increase test coverage 2025-04-12 15:59:16 -07:00
Eric Liu
90b96a2fed test: enable clearMocks 2025-04-12 15:35:49 -07:00
Eric Liu
f0657b1dcd chore(deps-dev): upgrade vitest 2025-04-12 15:35:49 -07:00
Eric Liu
8ab77c99e2 test(multi-select): more unit tests 2025-04-12 14:34:11 -07:00
Eric Liu
5e8c8b983c test(local-storage): extract shared global mock 2025-04-12 14:34:11 -07:00
Eric Liu
823a8f69dc test(fluid-form): add unit tests 2025-04-12 14:34:11 -07:00
Eric Liu
37a1ab30cf test(form): add unit tests 2025-04-12 14:34:11 -07:00
Eric Liu
b9de4591be test(button-set): add unit tests 2025-04-12 14:34:11 -07:00
Eric Liu
5bff894ed7 test: delete old test files 2025-04-12 14:34:11 -07:00
Eric Liu
d4ca8b5c97
test(modal): add unit tests (#2145) 2025-04-12 12:55:39 -07:00
Eric Liu
da2a308d31
test(data-table): add unit tests (#2144) 2025-04-12 12:21:28 -07:00
Eric Liu
c57c0efb73 test(column): add unit tests 2025-04-01 08:47:29 -07:00
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