Skip to content

Commit

Permalink
fix: adopt new class names in storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
booc0mtaco committed Dec 2, 2022
1 parent e5ccd95 commit 8ae43cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Select/Select.stories.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*------------------------------------*\
# DROPDOWN STORIES
# SELECT STORIES
\*------------------------------------*/

.interactive-example {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Select/Select.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function InteractiveExampleUsingChildren(props: Props) {
<div className={styles['interactive-example']}>
<Select
aria-label={props['aria-label']}
className={clsx(!compact && styles['dropdown--non-compact'])}
className={clsx(!compact && styles['select--non-compact'])}
data-testid="dropdown"
onChange={setSelectedOption}
value={selectedOption}
Expand Down Expand Up @@ -123,7 +123,7 @@ function InteractiveExampleUsingFunctionChildren() {
<Select
aria-label="Favorite Animal"
as="div"
className={styles['dropdown--non-compact']}
className={styles['select--non-compact']}
data-testid="dropdown"
onChange={setSelectedOption}
value={selectedOption}
Expand Down
6 changes: 3 additions & 3 deletions src/components/Select/__snapshots__/Select.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ exports[`<Select /> SeparateButtonAndMenuWidth story renders snapshot 1`] = `

exports[`<Select /> UsingChildrenProp story renders snapshot 1`] = `
<div
class="select dropdown--non-compact"
class="select select--non-compact"
data-testid="dropdown"
>
<label
Expand Down Expand Up @@ -576,7 +576,7 @@ exports[`<Select /> UsingChildrenProp story renders snapshot 1`] = `

exports[`<Select /> UsingChildrenPropAndNoVisibleLabel story renders snapshot 1`] = `
<div
class="select dropdown--non-compact"
class="select select--non-compact"
data-testid="dropdown"
>
<label
Expand Down Expand Up @@ -659,7 +659,7 @@ exports[`<Select /> UsingChildrenPropAndNoVisibleLabel story renders snapshot 1`
exports[`<Select /> UsingFunctionChildrenProp story renders snapshot 1`] = `
<div
aria-label="Favorite Animal"
class="select dropdown--non-compact"
class="select select--non-compact"
data-testid="dropdown"
>
<button
Expand Down

0 comments on commit 8ae43cc

Please sign in to comment.