helpscout / hsds-react

Help Scout Design System (HSDS) — React Component Library
MIT License
86 stars 17 forks source link

IconButton status indicator #1028

Closed plbabin closed 2 years ago

plbabin commented 2 years ago

This update add a status indicator on the IconButton component. Some new UI work requires this button to have a red dot on demand. It was easier to implement within the core component vs doing it as a new component in our hs-app-ui stack. The status indicator was build mainly for the outlined button, but it is supported for all variants.

Outlined

CleanShot 2022-02-10 at 09 53 09@2x

Hover

CleanShot 2022-02-10 at 09 57 19@2x

Seamless

CleanShot 2022-02-10 at 09 53 19@2x

Filled

CleanShot 2022-02-10 at 09 53 29@2x

Size small

CleanShot 2022-02-10 at 09 53 01@2x

Tests

We also took the time in this update to cleanup the IconButton tests. Doesn't mean the tests list is a complete one (we still need to address that).

Write to your heart's content, include:

Guidelines

Make sure the pull request: