Set box-sizing for border-box universal styles #15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "patch-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When a universal CSS selector applies
box-sizing: border-box;(which is a common pattern in CSS and commonly included in resets), the styling on the autocomplete icon is a bit broken:box-sizing: border-box, key icon overlapping with text:box-sizing: content-box, key icon not overlapping with text:This PR ensures that the autocomplete icon will use the correct box sizing.
See also https://github.com/uiwjs/react-codemirror/issues/411, which this PR would resolve.
An alternative to this would be to use CSS properties for the sizing that behave the same in both box models...
Merged, thanks.
Glad to help, thanks for the merge! Will this be published as a part of
@codemirror/autocomplete@6.3.3?