Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toolbar: Add unstyled variant #55139

Merged
merged 11 commits into from
Oct 12, 2023
Prev Previous commit
Next Next commit
Add test for new variant
  • Loading branch information
brookewp committed Oct 6, 2023
commit b8abb3fd11ef4f89378134c4464912eb720bb61b
8 changes: 8 additions & 0 deletions packages/components/src/toolbar/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,13 @@ describe( 'Toolbar', () => {
screen.getByLabelText( 'control2', { selector: 'button' } )
).toBeInTheDocument();
} );

it( 'should render a toolbar without styles if variant has been defined', () => {
brookewp marked this conversation as resolved.
Show resolved Hide resolved
render( <Toolbar label="blocks" variant="unstyled" /> );

expect( screen.getByRole( 'toolbar' ) ).toHaveClass(
'is-unstyled'
);
} );
} );
} );