Skip to content
This repository was archived by the owner on Mar 2, 2018. It is now read-only.

Commit d313093

Browse files
committed
added explicit box-sizing to css to avoid layout breaking when a global box-sizing is set
1 parent 537b9c9 commit d313093

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/datetime-picker.component.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,15 @@ declare var moment: any;
140140
`,
141141
styles: [
142142
`
143+
* {
144+
box-sizing: content-box;
145+
/*
146+
This is necessary because the rest of the styles assume it
147+
and CSS "frameworks" explicitly set the box-sizing to border-box,
148+
breaking the layout here.
149+
*/
150+
}
151+
143152
@keyframes slideDown {
144153
0% {
145154
transform: translateY(-10px);

0 commit comments

Comments
 (0)