Skip to content

Commit 4309aac

Browse files
committed
adds clearfix as a utility class and adds it to wysiwyg component
1 parent 8ff36f7 commit 4309aac

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

services/app/source/03-components/Wysiwyg/Wysiwyg.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ interface WysiwygProps extends GessoComponent {
77
}
88

99
function Wysiwyg({ children, modifierClasses }: WysiwygProps): JSX.Element {
10-
return <div className={clsx(modifierClasses)}>{children}</div>;
10+
return (
11+
<div className={clsx('c-wysiwyg u-clearfix', modifierClasses)}>
12+
{children}
13+
</div>
14+
);
1115
}
1216

1317
export default Wysiwyg;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@import 'mixins';
2+
3+
.clearfix,
4+
.u-clearfix {
5+
@include clearfix();
6+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@layer utility {
22
@import 'accessibility.css';
33
@import 'alignment.css';
4+
@import 'clearfix.css';
45
}

0 commit comments

Comments
 (0)