Details in topic styling changes - Feedback

Some initial feedback:

  1. I glazed over the new details element when I first encountered it. It just didn’t register as a [details]. It might be “just because it’s new”, but…
  2. It’s divorced from previous design and the default browser implementation – the chevron is after the summary instead of before, and the closed state points in the direction that previously (and by default) meant the opened state.
    closed: 5e2f09a3273a7776b5183413ef6f10e6527e79e0 d9740bb422e18ababe7c9a7d542c2f16fc133988
    open: 7c34c74801ab3cf04dc83e99b95e7689bb4ded71 f65dd89b62acbfaa9dcf83bd03bbe23eb0c1105a
  3. The button/summary element takes much more space (previously it was a semi-inline element)
    vs
  4. As seen above, previously the triangle/chevron was aligned with the text and now the “Summary” text isn’t, because of button’s padding (nothing is aligned with anything :sweat_smile:)
  5. On mobile, after interacting with it, button’s background stays highlighted
  6. I would have voted for the border rather than the background option – I’d prefer that hiding some content did just that, without affecting contrast (relevant mostly in case of embedded images and emoji)

update:

  1. A reduced clickable area:

    vs
7 Likes