diff --git a/src/components/NcButton/NcButton.vue b/src/components/NcButton/NcButton.vue index fb59dc5543..2b98b50849 100644 --- a/src/components/NcButton/NcButton.vue +++ b/src/components/NcButton/NcButton.vue @@ -37,44 +37,44 @@ It can be used with one or multiple actions. aria-label="Example text" :disabled="disabled" :size="size" + :text="text" type="tertiary-no-background"> - - + :size="size" + :text="text"> - - @@ -83,13 +83,13 @@ It can be used with one or multiple actions. - Example text @@ -102,32 +102,32 @@ It can be used with one or multiple actions. - Example text - Example text - Example text

-

@@ -148,7 +148,14 @@ export default { size: 'normal', style: 'icontext', } - } + }, + computed: { + text() { + if (this.style.includes('text')) { + return 'Example text' + } + }, + }, } @@ -189,45 +196,39 @@ Sometimes it is required to change the icon alignment on the button, like for sw ```vue - + - Favorite