Commit 220b988
feat: add accessibility and focusOnChange settings to carousel (#4156)
## Description
Adding these settings to help make the carousel component compliant with
a11y requirements. Settings default to off so that existing workflows
are not disrupted.
**JIRA ticket**
https://builder-io.atlassian.net/browse/ENG-10325
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Adds accessibility and focusOnSelect options to the Carousel and
upgrades react-slick, with a minor version bump and related dependency
updates.
>
> - **Widgets/Carousel**:
> - Add `accessibility` and `focusOnSelect` inputs in
`Carousel.config.ts` (advanced, default `false`).
> - Pass `accessibility` and `focusOnSelect` props to `react-slick` in
`Carousel.tsx`.
> - **Dependencies**:
> - Upgrade `react-slick` to `^0.31.0` and `@types/react-slick` to
`^0.23.13`.
> - Lockfile reflects updated peer ranges and removal of transitive
`enquire.js`.
> - **Release & Scripts**:
> - Bump package version to `2.1.0` and add `release:minor` script.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
692c7a5. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Signed-off-by: Sanyam Kamat <1625114+sanyamkamat@users.noreply.github.com>
Co-authored-by: Sanyam Kamat <1625114+sanyamkamat@users.noreply.github.com>1 parent b49671e commit 220b988
File tree
4 files changed
+38
-30
lines changed- packages/widgets
- src/components
4 files changed
+38
-30
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
96 | | - | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
| 100 | + | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
102 | | - | |
103 | | - | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| 112 | + | |
| 113 | + | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
| |||
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| 123 | + | |
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
| |||
127 | 131 | | |
128 | 132 | | |
129 | 133 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 134 | + | |
134 | 135 | | |
135 | 136 | | |
| 137 | + | |
| 138 | + | |
136 | 139 | | |
137 | 140 | | |
138 | 141 | | |
139 | 142 | | |
140 | | - | |
141 | | - | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| |||
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
168 | | - | |
| 169 | + | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
203 | 217 | | |
204 | 218 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
| 105 | + | |
| 106 | + | |
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
| |||
0 commit comments