From c8abea908de2ddc03b8c8e37eef017a51f621b90 Mon Sep 17 00:00:00 2001 From: chisom chima Date: Wed, 21 Feb 2024 12:06:34 +0100 Subject: [PATCH] feat: update warning in button component --- components/button/src/button/__tests__/Button.test.js | 2 +- components/button/src/button/button.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/button/src/button/__tests__/Button.test.js b/components/button/src/button/__tests__/Button.test.js index 79cb840137..b36146c492 100644 --- a/components/button/src/button/__tests__/Button.test.js +++ b/components/button/src/button/__tests__/Button.test.js @@ -35,7 +35,7 @@ describe(') 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.' ) }) diff --git a/components/button/src/button/button.js b/components/button/src/button/button.js index 89095a5c44..7f27d98223 100644 --- a/components/button/src/button/button.js +++ b/components/button/src/button/button.js @@ -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.' ) }