From 73e8ec79f399ad0a68c52f3838095b104d93dc5d Mon Sep 17 00:00:00 2001 From: Marco Ambrosini Date: Wed, 20 Jul 2022 12:36:41 +0200 Subject: [PATCH 1/2] Turn the button into a link when href is provided Sometimes is useful to have links that are styled as buttons. This allows to pass in an href prop to the button component and turns the native root html element into an `a` when that's provided. Signed-off-by: Marco Ambrosini --- src/components/Button/Button.vue | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/src/components/Button/Button.vue b/src/components/Button/Button.vue index af1b5ff6d2..10e9ff1008 100644 --- a/src/components/Button/Button.vue +++ b/src/components/Button/Button.vue @@ -198,8 +198,8 @@ button {