| package name | version |
|---|---|
@rei/cedar | ^7.x.x |
@rei/cdr-tokens | ^7.x.x |
@rei/cdr-component-variables | ^5.x.x |
info-action slot of CdrInput or CdrSelectWe added a new slot to CdrModal called modal which overrides the entire modal dialog box including the title and close button.
We resolved a bug where re-opening a CdrModal immediately after closing can result in blank content.
CdrTooltip and CdrPopover are both components that accepts a trigger element and content. CdrTooltip renders it's content whenever the trigger element is hovered or focused, and CdrPopover renders it's content whenever it's trigger element is clicked. See the CdrTooltip page and CdrPopover page for more information.
error prop and slot added to enable validation.info-action slot for rendering an icon outside and to the right of the input.required state to render as an asterisk *.optional state added.background prop added to adjust input styling depending on the background it is rendered on.error prop and slot added to enable validation.info-action slot for rendering an icon outside and to the right of the input.required state to render as an asterisk *.optional state added.background prop added to adjust input styling depending on the background it is rendered on.helper-text-top slot added to render helper text above the input. We have also renamed the helper-text slot to be helper-text-bottom.cdr-input__button utility class has been added for styling icon buttons that are used inside of the post-icon slot.background prop added to adjust input styling depending on the background it is rendered on.error prop and slot added to enable validation of checkbox and radio groups.optional and required states added.Cedar worked with the Performance team to optimize the cdr-fonts.css file. The fonts must be loaded on every page so this should improve performance across REI. Micro-sites can also opt in to a cached version of this file by loading the @rei/fonts (opens new window) package rather than importing the cdr-fonts.css file directly from Cedar.
@rei/cdr-component-variables and @rei/cdr-tokens have been deleted and now redirect to the equivalent pages on this site.The helper-text slot in CdrInput has been deprecated and replaced with an identical helper-text-bottom slot. This was done to be consistent with the new helper-text-top slot.
In order to align with performance goals, we are working on a long-term deprecation of the CdrText modifier property and the space utility classes. Both of these features require loading a large CSS asset even if you are only using a handful of the type or space options. Instead, you should begin using the Cedar Design Tokens to apply the same styles using a custom CSS class. Projects that are currently using these features should instead use the design tokens for any new work, and incrementally migrate their existing usage when possible.
Example CdrText modifier update:
<cdr-text modifier="body-300">Old</cdr-text>
<cdr-text class="your-custom-type-class">New</cdr-text>
.your-custom-type-class {
@include cdr-text-body-300;
}
Example Space utility update:
<div class="cdr-mb-space-one-x">old</div>
<div class="your-custom-space-class">new</div>
.your-custom-space-class {
margin-bottom: $cdr-space-one-x
}
@rei/cdr-component-variables.form-label.vars.scss file has been removed. See the chart below for information on re-mapping those mixins.| Old Mixin | New Mixin |
|---|---|
| cdr-input-base-label-mixin | cdr-label-standalone-label-mixin |
| cdr-input-required-label-mixin | cdr-label-standalone-label-mixin |
| cdr-input-info-container-mixin | cdr-label-standalone-info-mixin |
| cdr-input-helper-text-mixin | cdr-label-standalone-helper-mixin |
| cdr-input-base-label-disabled-mixin | cdr-label-standalone-disabled-mixin |
| cdr-select-base-label-mixin | cdr-label-standalone-label-mixin |
| cdr-select-base-label-disabled-mixin | cdr-label-standalone-disabled-mixin |
| cdr-select-required-label-mixin | cdr-label-standalone-label-mixin |
| cdr-select-info-container-mixin | cdr-label-standalone-info-mixin |
| cdr-select-helper-text-mixin | cdr-label-standalone-helper-mixin |
| cdr-label-base-mixin | cdr-label-wrapper-base-mixin, cdr-label-wrapper-primary-mixin |
| cdr-label-disabled-mixin | cdr-label-wrapper-disabled-mixin |
| cdr-label-small-mixin | cdr-label-wrapper-small-mixin |
| cdr-label-large-mixin | cdr-label-wrapper-large-mixin |
In accordance with our deprecation policy, features that were deprecated in the Spring 2020 release or prior have been removed from Cedar.
cdr-bg--) have been removed. Use the cdr-color-background- format instead.cdr-text-utility-n00 have been removed. Use the cdr-text-utility-sans-n00 format instead.lightmode or darkmode have beeen removed. See the spring release notes for more information on updatingcompact modifier for CdrCheckbox and CdrRadio has been removed. Use size="small" instead.tabChange event has been removed from CdrTabs. Use tab-change instead.label prop for CdrAccordion has been removed. Use the label slot instead.