StreamlitAntdComponents icon indicating copy to clipboard operation
StreamlitAntdComponents copied to clipboard

SegmentItems break when `prefers-reduced-motion` is on

Open saucoide opened this issue 1 year ago • 0 comments

There seems to be an issue when the prefers-reduced-motion is enabled* , segmented controls render the active Item incorrectly in all browsers

The div that contains the label & input gets a background-color: rgb(255, 255, 255); property, while with the setting disbaled, the div is transparent and the contents of the control can be seen correctly

  • https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion

saucoide avatar Mar 28 '24 13:03 saucoide