menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

styled-system

Style props for rapid UI development

Channels
Team

Are responsive value objects supposed to remain in the DOM?

July 8, 2021 at 8:12pm

Are responsive value objects supposed to remain in the DOM?

July 8, 2021 at 8:12pm (Edited 1 year ago)
When using display with responsiveness like display={{ xs: 'none'; sm: 'inline' }}, should we always expect to see that in the dom, display:[object Object]. I think it's failing a RTL toBeVisible() test I wrote that expects to see none when the media query matches xs. The test passes if I hardcode display='inline'
No messages yet