Skip to content

Commit 6aac26c

Browse files
committed
set explicit box-sizing on .tsmb-form input[type=search]
It's funny how there's only a tiny tiny subset of elements where browsers apply a box-sizing other than content-box by default (basically only input fields), and the majority of developers crave to apply this more widely, yet, in the wild I came across a "reset" rule that explicitly applies `box-sizing: content-box` to `input[type=search]`, which then breaks our layout.
1 parent 53854a7 commit 6aac26c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

typesense-minibar.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
}
3030

3131
.tsmb-form input[type=search] {
32+
box-sizing: border-box;
3233
-webkit-appearance: none;
3334
-moz-appearance: none;
3435
appearance: none;

0 commit comments

Comments
 (0)