Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertCarreras committed Nov 29, 2024
1 parent 864e294 commit 4f4e05b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
6 changes: 5 additions & 1 deletion packages/gestalt/src/Divider.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import classnames from 'classnames';
import styles from './Divider.css';
import useInExperiment from './useInExperiment';

Expand All @@ -17,7 +18,10 @@ export default function Divider({}: Record<any, any>) {

return (
<hr
className={(styles.divider, isInVRExperiment ? styles.VRborderColor : styles.borderColor)}
className={classnames(
styles.divider,
isInVRExperiment ? styles.VRborderColor : styles.borderColor,
)}
/>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ exports[`Module Expandable renders correctly with multiple items 1`] = `
</div>
</div>
<hr
className="divider"
className="divider borderColor"
/>
<div
className="box paddingX600 paddingY600"
Expand Down Expand Up @@ -242,7 +242,7 @@ exports[`Module Expandable renders correctly with multiple items 1`] = `
</div>
</div>
<hr
className="divider"
className="divider borderColor"
/>
<div
className="box paddingX600 paddingY600"
Expand Down Expand Up @@ -644,7 +644,7 @@ exports[`renders correctly with multiple items with expandedId 1`] = `
</div>
</div>
<hr
className="divider"
className="divider borderColor"
/>
<div
className="box paddingX600 paddingY600"
Expand Down Expand Up @@ -764,7 +764,7 @@ exports[`renders correctly with multiple items with expandedId 1`] = `
</div>
</div>
<hr
className="divider"
className="divider borderColor"
/>
<div
className="box paddingX600 paddingY600"
Expand Down
2 changes: 1 addition & 1 deletion packages/gestalt/src/__snapshots__/Divider.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

exports[`Divider renders 1`] = `
<hr
className="divider"
className="divider borderColor"
/>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ exports[`SideNavigation renders Header + Footer 1`] = `
className="FlexItem"
>
<hr
className="divider"
className="divider borderColor"
/>
</div>
</div>
Expand Down Expand Up @@ -160,7 +160,7 @@ exports[`SideNavigation renders Header + Footer 1`] = `
className="FlexItem"
>
<hr
className="divider"
className="divider borderColor"
/>
</div>
<div
Expand Down

0 comments on commit 4f4e05b

Please sign in to comment.