Outlined Button: Addressing Gotchas

This example demonstrates handling common "gotchas" with outlined buttons: ensuring true background transparency with bg-transparent and providing clear, distinct hover and focus states.

Understanding the "Gotchas" Addressed:

1. Explicit Background Transparency ( bg-transparent ):

While HTML <button> elements are typically transparent by default, explicitly adding bg-transparent is a robust way to ensure this behavior. It's particularly important if:

2. Distinct Hover and Focus States:

Outlined buttons need clear visual feedback for user interactions: