@momentum-design/components 0.136.0 → 0.136.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -111,7 +111,7 @@ declare class Toast extends Toast_base {
111
111
  private updateDetailedSlotPresence;
112
112
  private updateFooterButtonsPresence;
113
113
  protected firstUpdated(changedProperties: PropertyValues): Promise<void>;
114
- protected updated(changedProperties: PropertyValues): void;
114
+ protected updated(changedProperties: PropertyValues): Promise<void>;
115
115
  protected renderIcon(iconName: string): import("lit-html").TemplateResult<1> | typeof nothing;
116
116
  private canRenderToggleButton;
117
117
  private shouldRenderToggleButton;
@@ -122,15 +122,17 @@ class Toast extends FooterMixin(Component) {
122
122
  super.firstUpdated(changedProperties);
123
123
  this.updateDetailedSlotPresence();
124
124
  this.updateDataExpanded();
125
- await this.updateComplete;
126
- if (hasOverflowMixin(this.headerTextElement)) {
127
- this.hasOverflowingHeaderText = this.headerTextElement.isHeightOverflowing();
128
- }
129
125
  }
130
- updated(changedProperties) {
126
+ async updated(changedProperties) {
131
127
  if (changedProperties.has('showMoreText') || changedProperties.has('showLessText')) {
132
128
  this.updateDataExpanded();
133
129
  }
130
+ if (changedProperties.has('headerText')) {
131
+ await this.updateComplete;
132
+ if (hasOverflowMixin(this.headerTextElement)) {
133
+ this.hasOverflowingHeaderText = this.headerTextElement.isHeightOverflowing();
134
+ }
135
+ }
134
136
  }
135
137
  renderIcon(iconName) {
136
138
  if (!iconName)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@momentum-design/components",
3
3
  "packageManager": "yarn@3.2.4",
4
- "version": "0.136.0",
4
+ "version": "0.136.1",
5
5
  "engines": {
6
6
  "node": ">=24.0.0",
7
7
  "npm": ">=8.0.0"