@brightspace-ui/core 3.30.1 → 3.30.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -124,6 +124,9 @@ class LoadMore extends PageableSubscriberMixin(FocusMixin(LocalizeCoreElement(Rt
124
124
  });
125
125
  this._loading = false;
126
126
 
127
+ // wait a frame for async sub-components to render
128
+ await new Promise(resolve => requestAnimationFrame(resolve));
129
+
127
130
  const item = pageable._getItemByIndex(lastItemIndex + 1);
128
131
 
129
132
  if (!item) return;
@@ -3,7 +3,7 @@ import '../dropdown/dropdown.js';
3
3
  import '../dropdown/dropdown-menu.js';
4
4
  import '../icons/icon.js';
5
5
  import '../menu/menu.js';
6
- import { css, html, LitElement, unsafeCSS } from 'lit';
6
+ import { css, html, LitElement, nothing, unsafeCSS } from 'lit';
7
7
  import { classMap } from 'lit/directives/class-map.js';
8
8
  import { FocusMixin } from '../../mixins/focus/focus-mixin.js';
9
9
  import { getFocusPseudoClass } from '../../helpers/focus.js';
@@ -138,6 +138,7 @@ export class TableColSortButton extends LocalizeCoreElement(FocusMixin(LitElemen
138
138
  this.sourceType = 'unknown';
139
139
 
140
140
  this._describedById = getUniqueId();
141
+ this._describedBySortedId = getUniqueId();
141
142
  this._hasDropdownItems = false;
142
143
  }
143
144
 
@@ -166,13 +167,20 @@ export class TableColSortButton extends LocalizeCoreElement(FocusMixin(LitElemen
166
167
  html`<d2l-icon icon="${this.desc ? 'tier1:arrow-toggle-down' : 'tier1:arrow-toggle-up'}"></d2l-icon>` :
167
168
  null;
168
169
 
170
+ let sortedView = nothing;
171
+ let describedBy = this._describedById;
172
+ if (buttonTitle !== undefined) {
173
+ sortedView = html`<span id="${this._describedBySortedId}" hidden>${buttonTitle},</span>`;
174
+ describedBy = `${this._describedBySortedId} ${this._describedById}`;
175
+ }
176
+
169
177
  const button = html`<button
170
- aria-describedby="${this._describedById}"
178
+ aria-describedby="${describedBy}"
171
179
  class="${classMap({ 'd2l-dropdown-opener': this._hasDropdownItems })}"
172
180
  title="${ifDefined(buttonTitle)}"
173
181
  type="button">
174
182
  <slot></slot>${iconView}
175
- </button><span id="${this._describedById}" hidden>${buttonDescription}</span>`;
183
+ </button><span id="${this._describedById}" hidden>${buttonDescription}</span>${sortedView}`;
176
184
  if (this._hasDropdownItems) {
177
185
  return html`<d2l-dropdown>
178
186
  ${button}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.30.1",
3
+ "version": "3.30.3",
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",