@brightspace-ui/core 2.145.0 → 2.145.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.
@@ -122,10 +122,10 @@ class ButtonSubtle extends ButtonMixin(LitElement) {
122
122
  :host([active]:not([disabled])) button .d2l-button-subtle-content {
123
123
  color: var(--d2l-color-celestine-minus-1);
124
124
  }
125
- .d2l-button-subtle-has-icon .d2l-button-subtle-content {
125
+ .d2l-button-subtle-has-icon .d2l-button-subtle-content-wrapper {
126
126
  padding-inline: 1.2rem 0;
127
127
  }
128
- :host([icon-right]) .d2l-button-subtle-has-icon .d2l-button-subtle-content {
128
+ :host([icon-right]) .d2l-button-subtle-has-icon .d2l-button-subtle-content-wrapper {
129
129
  padding-inline: 0 1.2rem;
130
130
  }
131
131
 
@@ -202,8 +202,10 @@ class ButtonSubtle extends ButtonMixin(LitElement) {
202
202
  name="${ifDefined(this.name)}"
203
203
  type="${this._getType()}">
204
204
  <slot name="icon" @slotchange="${this._handleIconSlotChange}">${icon}</slot>
205
- <span class="d2l-button-subtle-content">${this.text}</span>
206
- <slot></slot>
205
+ <span class="d2l-button-subtle-content-wrapper">
206
+ <span class="d2l-button-subtle-content">${this.text}</span>
207
+ <slot></slot>
208
+ </span>
207
209
  </button>
208
210
  ${this.description ? html`<span id="${this._describedById}" hidden>${this.description}</span>` : null}
209
211
  ${this.disabled && this.disabledTooltip ? html`<d2l-tooltip for="${this._buttonId}">${this.disabledTooltip}</d2l-tooltip>` : ''}
@@ -108,7 +108,7 @@ class DescriptionListWrapper extends LitElement {
108
108
  if (!entries || entries.length === 0) return;
109
109
  const entry = entries[0];
110
110
 
111
- this._stacked = entry.contentRect.width < this.breakpoint;
111
+ requestAnimationFrame(() => this._stacked = entry.contentRect.width < this.breakpoint);
112
112
  }
113
113
  }
114
114
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.145.0",
3
+ "version": "2.145.1",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",