Audit components for consistent border-box box-sizing
#11,421 opened on Jan 30, 2025
Repository metrics
- Stars
- (367 stars)
- PR merge metrics
- (PR metrics pending)
Description
monday.com sync: #18048689262
Description
Some components do not have box-sizing: border-box set and could produce inconsistent layouts.
Proposed Advantages
Consistent box-sizing and more predictable layout.
Which Component
all of the components!
Relevant Info
-
Note: It is often useful to set box-sizing to border-box to lay out elements. This makes dealing with the sizes of elements much easier, and generally eliminates a number of pitfalls you can stumble on while laying out your content. On the other hand, when using position: relative or position: absolute, use of box-sizing: content-box allows the positioning values to be relative to the content, and independent of changes to border and padding sizes, which is sometimes desirable.
Calcite package
- @esri/calcite-components
- @esri/calcite-components-react
- @esri/calcite-design-tokens
- @esri/calcite-ui-icons
- @esri/eslint-plugin-calcite-components