From 061d91fa1cc82e2458631d0f77cf057945bb4393 Mon Sep 17 00:00:00 2001 From: Shivam Daksh Date: Tue, 8 Oct 2024 14:31:36 +0530 Subject: [PATCH 1/2] add computedAriaLabel feature --- lib/buttons-and-links/KIconButton.vue | 44 ++++----------------------- 1 file changed, 6 insertions(+), 38 deletions(-) diff --git a/lib/buttons-and-links/KIconButton.vue b/lib/buttons-and-links/KIconButton.vue index 5e7e98634..73e64b474 100644 --- a/lib/buttons-and-links/KIconButton.vue +++ b/lib/buttons-and-links/KIconButton.vue @@ -6,11 +6,10 @@ :appearance="appearance" :appearanceOverrides="appearanceOverrides" :type="buttonType" - :aria-label="ariaLabel" + :aria-label="computedAriaLabel" text="" v-on="$listeners" > - {{ tooltip }} - - - - From 16fc7812d56f989e40352e67c6e190291f9da0f8 Mon Sep 17 00:00:00 2001 From: Shivam Daksh Date: Tue, 8 Oct 2024 14:37:16 +0530 Subject: [PATCH 2/2] update and cleanup the code --- lib/buttons-and-links/KIconButton.vue | 39 +++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/lib/buttons-and-links/KIconButton.vue b/lib/buttons-and-links/KIconButton.vue index 73e64b474..e1d8033c8 100644 --- a/lib/buttons-and-links/KIconButton.vue +++ b/lib/buttons-and-links/KIconButton.vue @@ -10,6 +10,7 @@ text="" v-on="$listeners" > + {{ tooltip }} + + + +