Goal
Currently we're repeating the focus styles several times over the different Button types and actions (neutral/progressive/destructive).
Not only do we repeat the code, it has been also an invitation to mix up focus styles:
We're currently feature for example the primary only box-shadow with white inset on the normal progressive button, where we shouldn't use the primary ones.
Current wrong implementation:
.cdx-button--type-normal.cdx-button--action-progressive:enabled:focus { border-color: #36c; box-shadow: inset 0 0 0 1px #36c, inset 0 0 0 2px #fff; }
Criteria for Done
- DRY up focus code in Button component
- Fix setting of normal progressive/destructive buttons to use base focus only