diff --git a/src/components/accessibility/skip_link/__snapshots__/skip_link.test.tsx.snap b/src/components/accessibility/skip_link/__snapshots__/skip_link.test.tsx.snap index 9f034b50274..f0b8651fbe5 100644 --- a/src/components/accessibility/skip_link/__snapshots__/skip_link.test.tsx.snap +++ b/src/components/accessibility/skip_link/__snapshots__/skip_link.test.tsx.snap @@ -3,7 +3,7 @@ exports[`EuiSkipLink is rendered 1`] = ` @@ -34,7 +34,7 @@ exports[`EuiSkipLink props position absolute is rendered 1`] = ` exports[`EuiSkipLink props position fixed is rendered 1`] = ` @@ -59,7 +59,7 @@ exports[`EuiSkipLink props position static is rendered 1`] = ` exports[`EuiSkipLink props tabIndex is rendered 1`] = ` diff --git a/src/components/button/button.tsx b/src/components/button/button.tsx index 60450632d75..e360a73842d 100644 --- a/src/components/button/button.tsx +++ b/src/components/button/button.tsx @@ -7,6 +7,7 @@ */ import React, { FunctionComponent, Ref, ReactNode } from 'react'; +import classNames from 'classnames'; import { CommonProps, @@ -84,7 +85,13 @@ export type Props = ExclusiveUnion< * and the logic for element-specific attributes */ export const EuiButton: FunctionComponent = (props) => { - const { buttonRef, color: _color = 'primary', fill, ...rest } = props; + const { + className, + buttonRef, + color: _color = 'primary', + fill, + ...rest + } = props; const buttonIsDisabled = isButtonDisabled({ href: rest.href, @@ -100,6 +107,7 @@ export const EuiButton: FunctionComponent = (props) => { const buttonFocusStyle = useEuiButtonFocusCSS(); + const classes = classNames('euiButton', className); const cssStyles = [buttonColorStyles, buttonFocusStyle]; if (_color === 'ghost') { @@ -113,9 +121,9 @@ export const EuiButton: FunctionComponent = (props) => { return ( ); diff --git a/src/components/card/__snapshots__/card.test.tsx.snap b/src/components/card/__snapshots__/card.test.tsx.snap index ee77f960e27..0b270af7384 100644 --- a/src/components/card/__snapshots__/card.test.tsx.snap +++ b/src/components/card/__snapshots__/card.test.tsx.snap @@ -82,7 +82,7 @@ exports[`EuiCard horizontal selectable 1`] = `