Bug reportNov 27, 2026· 0:13· 18 views
Carbon web-components cds-slider: ArrowUp decreases value instead of increasing it (inverted keyboard)
0:13 total
Comments · 0
Be the first to comment.
Bug reportby SceneRecap AI
mediumCarbon web-components cds-slider keyboard handler. Check the sign of the step delta applied for ArrowUp and ArrowDown.
os: macOSdpr: 1url: /iframe.htmlstory: components-slider--defaultlocale: en-USbrowser: Chromium 151.0.7922.34timezone: Europe/Berlinviewport: 1280x720
Repro steps
- 1.Open the Storybook iframe story components-slider--default. The Storage allocation slider shows 50 on a 0 GB to 100 GB range.
- 2.Left-click the slider handle (role slider, name Slider) to focus it.
- 3.Press ArrowUp five times.
- 4.Observe that the value drops to 45 and the handle moves left.
- 5.Press ArrowDown five times.
- 6.Observe that the value rises back to 50 and the handle moves right.
Expected
ArrowUp increases the slider value by one step (50 to 55 after five presses). ArrowDown decreases it.
Actual
ArrowUp decreases the value from 50 to 45. ArrowDown increases it from 45 back to 50. The keyboard direction is inverted for both keys.
Evidence
visualInitial state: slider input shows 50 and the overlay reads value = 50.
visualAfter two ArrowUp presses (4.3s, 4.8s) the overlay and input show 48 instead of 52.
visualAfter five ArrowUp presses the overlay and input show 45. The handle has moved left.
visualDuring the ArrowDown presses (from 8.0s) the value shows 48. It is increasing instead of decreasing.
visualAfter five ArrowDown presses the value shows 50. The handle has moved right.
visualValue stays at 50 with no further input.
Issue markdown (copy-paste ready)
## Summary In the `cds-slider` story `components-slider--default`, the arrow keys move the value in the wrong direction. ArrowUp decreases the value and ArrowDown increases it. ## Environment - Browser: Chromium 151.0.7922.34 - OS: macOS - Viewport: 1280x720, DPR 1 - Locale: en-US, timezone Europe/Berlin - URL: `/iframe.html`, story `components-slider--default` ## Steps to reproduce 1. Open the story. The Storage allocation slider shows 50 (0.0s). 2. Click the slider handle (role `slider`, name `Slider`) to focus it (3.4s). 3. Press ArrowUp five times (4.3s to 6.2s). 4. Press ArrowDown five times (8.0s to 9.8s). ## Expected ArrowUp raises the value by one step per press (50 to 55). ArrowDown lowers it. ## Actual - ArrowUp lowers the value: 48 at 5.0s, 45 at 7.0s. The handle moves left. - ArrowDown raises the value: 48 at 9.0s, 50 at 11.0s. The handle moves right. ## Evidence - 3.0s: overlay reads `value = 50`. - 5.0s: overlay and input show 48 after two ArrowUp presses. - 7.0s: overlay and input show 45 after five ArrowUp presses. - 9.0s: value shows 48 during the ArrowDown presses. - 11.0s and 13.0s: value shows 50 after five ArrowDown presses. ## Suggested area The `cds-slider` keydown handler. The step delta for ArrowUp and ArrowDown appears to have the wrong sign. ## Impact Keyboard and assistive technology users set the wrong values. This breaks the expected slider keyboard behavior. *Recorded with SceneRecap.*
This report was written by SceneRecap from a screen recording. Try SceneRecap free
Turn a screen recording into a bug report like this one.
Repro steps, expected vs actual and the console and network evidence, each with a timestamp. On every plan, Free included.
Try SceneRecap free →