Skip to content

Commit c7f46bf

Browse files
author
Dimitri Kopriwa
committed
fix(Row): Fix box-sizing within <Row />
When used without a <BootstrapProvider />, the <Row /> component will not have the css rules `*, ::after, ::before { box-sizing: border-box; }` appended and this will break the display fix #74
1 parent 49aacf6 commit c7f46bf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Row/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ const Row = styled(RowUnstyled)`
8787
padding-left: 0;
8888
}
8989
}
90+
91+
// Fix when not used with a BootstrapProvider, globals are missing (See #74)
92+
& *, & ::after, & ::before {
93+
box-sizing: border-box;
94+
}
9095
}
9196
`}
9297
`;

0 commit comments

Comments
 (0)