Conversation

Comment

Avatar, author, time, body and actions. Replies nest with a hairline.

Examples

Comment

Ada

The φ scale reads much calmer at compact density.

Mika

Agreed. Let's make it the default for data views.

Anatomy

article.commentTwo columns: avatar, then the comment.
> .avatarWho wrote it.
> divThe comment column, stacked tightly.
div > headerAuthor in <b>, then a <time>, small and muted, on one baseline.
div > pThe body.
div > footerActions as bare text buttons, extra small and muted until hovered.
div > .commentOptional replies: nested comments, indented behind a hairline.

Accessibility

  • Every comment has the same "Reply" button. Add an aria-label such as "Reply to Ada" so they differ out of context.
  • Give <time> a datetime attribute; "2h" is relative and goes stale.
  • Initials in the avatar duplicate the author name; mark the avatar aria-hidden="true" so the name isn't read twice.
Jump to
ProportionFoundations
MaterialFoundations
PresetsFoundations
ShellLayouts · Application
Container and stacksLayouts · Pages
SplitLayouts · Pages
Grid, bento, masonryLayouts · Pages
Switcher and rowLayouts · Pages
↑↓Move↵OpenescClose