Skip to content

Commit

Permalink
feat: update warning in button component
Browse files Browse the repository at this point in the history
  • Loading branch information
Chisomchima authored and kabaros committed Mar 18, 2024
1 parent 467077b commit c8abea9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/button/src/button/__tests__/Button.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('<Button>', () => {
render(<Button>{/* No children */}</Button>)

expect(consoleSpy).toHaveBeenCalledWith(
'Button component has no children but is missing title or ariaLabel attribute.'
'Button component has no children but is missing title and ariaLabel attribute.'
)
})

Expand Down
2 changes: 1 addition & 1 deletion components/button/src/button/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const Button = ({

if (!children && !title && !ariaLabel) {
console.debug(
'Button component has no children but is missing title or ariaLabel attribute.'
'Button component has no children but is missing title and ariaLabel attribute.'
)
}

Expand Down

0 comments on commit c8abea9

Please sign in to comment.