From bf169d0320a39d60ae5a0861a3fbadd789d9a358 Mon Sep 17 00:00:00 2001 From: Juan Lulkin Date: Tue, 2 Mar 2021 16:06:07 +0100 Subject: [PATCH] Adds more explanation in the changeset about the action and onClick props --- .changeset/sour-insects-marry.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.changeset/sour-insects-marry.md b/.changeset/sour-insects-marry.md index 9ede485869..fe35fda82e 100644 --- a/.changeset/sour-insects-marry.md +++ b/.changeset/sour-insects-marry.md @@ -6,3 +6,22 @@ Adds onClick and other props to IconLinkVertical Allows TriggerButton component to render when pager duty key is missing Refactors TriggerButton and PagerDutyCard not to have shared state +Removes the `action` prop of the IconLinkVertical component while adding `onClick`. So instead of having an action including a button with onClick, now the whole component can be clickable making it easier to implement and having a better UX. Before: + +```ts +const myLink : IconLinkVerticalProps = { + label: 'Click me', + action: