Skip to content

Commit e979738

Browse files
authored
Merge pull request #263 from Web-Dev-Path/fix/two-column-component
Fix "Row-Reverse" Styling Bug
2 parents f45b2c3 + 3658758 commit e979738

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,3 +173,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
173173
- Container
174174
- Updated ContactUsForm's checkbox wrapper from div to label to enhance its accessibility
175175
- Updated SearchInput width to 100% for better styling
176+
- Reverted the prop name to styles in Container component as the change of the name introduced a styling bug

components/containers/Container/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import styles from './Container.module.scss';
22

3-
export default function Container({ className, children, style }) {
3+
export default function Container({ className, children, styles: propStyles }) {
44
return (
5-
<div className={`${styles.container} ${className || ''}`} style={style}>
5+
<div
6+
className={`${styles.container} ${className || ''}`}
7+
style={propStyles}
8+
>
69
{children}
710
</div>
811
);

0 commit comments

Comments
 (0)