Skip to content

Commit

Permalink
make text props required for buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
indirectlylit committed Feb 23, 2021
1 parent 40b6a04 commit 8c1a061
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/pages/buttons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
Be sure to consider internationalization, translation, and cultural meaning in the use of icon buttons.
</p>
<p>
Always include a tooltip with the name of the action for icon buttons.
A tooltip with the name of the action is required for an icon button.
</p>
<DocsShow>
<KButtonGroup>
Expand Down
3 changes: 2 additions & 1 deletion lib/buttons-and-links/KIconButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
:appearanceOverrides="appearanceOverrides"
:buttonType="buttonType"
:aria-label="ariaLabel"
text=""
v-on="$listeners"
>
<UiTooltip
Expand Down Expand Up @@ -63,7 +64,7 @@
},
tooltip: {
type: String,
default: null,
required: true,
},
},
computed: {
Expand Down
2 changes: 1 addition & 1 deletion lib/buttons-and-links/buttonMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
*/
text: {
type: String,
required: false,
default: null,
},
/**
* Button appearance: 'raised-button', 'flat-button', or 'basic-link'
Expand Down

0 comments on commit 8c1a061

Please sign in to comment.