Variants and sizes

  • Confirm: Cancel (k-btn--text) and the action in ink (k-btn--ink): "Skip item".
  • Destructive: Cancel and the action in k-btn--critical: "Delete".

States

  • Opening: the scrim fades in and the dialog rises a little, over --k-motion-medium with --k-ease-enter; under prefers-reduced-motion both only fade.
  • Open: the page behind is inert.
  • Closing: Cancel, Escape or a tap on the scrim cancel; the confirming button acts, then closes.
  • The buttons show hover and pressed as state layers and focus as the ring. The destructive button says what it does in words, so it never rests on its colour alone.

Do and don’t

Do

  • Write the title as the question, with its verb: "Skip this item?"

  • Name the outcome on the button: "Skip item", "Delete", never "OK" or "Yes".

  • Say who else it changes things for: "for you and Ada".

Don’t

  • Open a dialog from a dialog.

  • Put more than two actions in it.

What you provide

  • The title, the body, the confirming label and its tone (ink or critical), the Cancel label when it is not "Cancel", what each button does, and the control that gets focus back.