telekom / scale

Scale is the digital design system for Telekom products and experiences.
https://telekom.github.io/scale/
Other
375 stars 82 forks source link

Segmented Button multiselect issue with local state #1862

Open mwyrembl opened 1 year ago

mwyrembl commented 1 year ago

Scale Version 3.0.0-beta.134

Framework and version React 18.2.0 with wrappers

Current Behavior All Scale Segmented Buttons are selected when using multi select and local state

Expected Behavior When using local state, the SegmentedButton components should refelect its state.

Code Reproduction https://codesandbox.io/s/scale-components-react18-with-wrapper-forked-i6rzgi?file=/src/App.js

Desktop (please complete the following information):

felix-ico commented 1 year ago

Hello @mwyrembl, I could confirm this bug and opened a PR to fix it https://github.com/telekom/scale/pull/1885. I also noticed some styling issues when using the segmented-button in react but these should be fixed once the refactored and a11y compliant segmented-button gets merged https://github.com/telekom/scale/pull/1881