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 committed Feb 21, 2024
1 parent 69cf6a8 commit 2c94aef
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 2c94aef

Please sign in to comment.