Drop undocumented utility classes #11606
Labels
0 - new
New issues that need assignment.
breaking change
Issues and pull requests with code changes that are not backwards compatible.
needs triage
Planning workflow - pending design/dev review.
refactor
Issues tied to code that needs to be significantly reworked.
resolution: refine
For issues we support, but additional details are needed prior to dev work.
Milestone
Description
https://github.com/Esri/calcite-design-system/pull/2028/files introduced a specialized CSS utility class (
calcite-match-height
) that is not documented. We should remove this in the next breaking release since it was in theshell-panel
's readme, which was considered public doc at some point.The following shows all
calcite
-prefixed classes that could be in a similar situation.Targets
Occurrences of
.calcite-
in Project with mask*.scss
Found occurrences: 68 usages
_animation.scss
(7 usages).calcite-animate
.calcite-animate__in
.calcite-animate__in-down
.calcite-animate__in-up
.calcite-animate__in-right
.calcite-animate__in-left
.calcite-animate__in-scale
_floating-ui.scss
(8 usages).calcite-floating-ui-anim
[data-placement^="bottom"] .calcite-floating-ui-anim
[data-placement^="top"] .calcite-floating-ui-anim
[data-placement^="left"] .calcite-floating-ui-anim
[data-placement^="right"] .calcite-floating-ui-anim
[data-placement] .calcite-floating-ui-anim--active
.calcite-floating-ui-arrow
.calcite-floating-ui-arrow__stroke
_sortable.scss
(6 usages).calcite-sortable--chosen
.calcite-sortable--ghost
.calcite-sortable--drag
.calcite-sortable--fallback
.calcite-sortable--ghost::before
.calcite-sortable--drag
global.scss
(1 usage).calcite-mode-auto
accordion-item.scss
(2 usages).calcite--rtl .expand-icon
.calcite--rtl .expand-icon
button.scss
(2 usages).calcite-button--loader
.calcite-button--loader calcite-loader
card.scss
(2 usages):host([loading]) .content-wrapper *:not(calcite-loader):not(.calcite-card-loader-container)
:host([loading]) .calcite-card-loader-container
checkbox.scss
(2 usages).toggle:not(.calcite--rtl)
.toggle.calcite--rtl
dropdown.scss
(5 usages).calcite-dropdown-wrapper
@include floating-ui-elem-anim(".calcite-dropdown-wrapper")
.calcite-dropdown-content
.calcite-trigger-container
:host([open]) .calcite-dropdown-wrapper
Proposed Advantages
Avoids internal, specialized CSS classes.
Which Component
See list above.
Relevant Info
Some matches from the above list could be renamed to avoid the prefix since they would be applied within the component's shadow DOM (in a separate issue/PR).
Calcite package
The text was updated successfully, but these errors were encountered: