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 775da9c commit 0af2e94
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion components/button/src/button/__tests__/Button.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import React from 'react'
import { Button } from '../button.js'

describe('<Button>', () => {

let consoleSpy

beforeEach(() => {
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 @@ -38,7 +38,7 @@ export const Button = ({
}, [initialFocus, ref.current])

const { 'aria-label': ariaLabel, title } = otherProps

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

0 comments on commit 0af2e94

Please sign in to comment.