ButtonsLesson 98Free preview
Alert Buttons
This lesson is part of How To · All levels
Summary
A warning button is a button with a flashy background color that is used to draw attention to an important action, such as deleting data or giving a warning. Color alone is not enough, so the button should still have text or icons that explain the meaning. Variations in colors such as red, yellow, and green help users distinguish the level of urgency.
Key points
- The alert button uses a strong background color and contrasting text.
- Separate classes such as .danger, .warning, and .success facilitate reuse.
- The hover effect helps give feedback that the button can be clicked.
- Do not rely on color alone; include clear text or icons.
- Use the alert button safely so as not to lose its appeal.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.