Audit components for consistent border-box box-sizing
#11.421 geöffnet am 30.01.2025
Repository-Metriken
- Stars
- (367 Sterne)
- PR-Merge-Metriken
- (PR-Metriken ausstehend)
Beschreibung
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