@brightspace-ui/core 2.23.3 → 2.24.0

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.
@@ -286,7 +286,7 @@ A tag-list allowing the user to see (and remove) the currently applied filters.
286
286
  | Property | Type | Description |
287
287
  |---|---|---|
288
288
  | `filter-ids` | String, required | Id(s) (space-delimited) of the filter component(s) to subscribe to |
289
- | `label-text` | String | The text displayed in this component's label |
289
+ | `label` | String | The text displayed in this component's label |
290
290
  <!-- docs: end hidden content -->
291
291
 
292
292
  ## Filter Dimension: Date [d2l-filter-dimension-date]
@@ -8,6 +8,8 @@ import { LocalizeCoreElement } from '../../helpers/localize-core-element.js';
8
8
  import ResizeObserver from 'resize-observer-polyfill/dist/ResizeObserver.es.js';
9
9
  import { styleMap } from 'lit/directives/style-map.js';
10
10
 
11
+ const CLEAR_ALL_THRESHOLD = 4;
12
+ const GAP = 6;
11
13
  const PAGE_SIZE = {
12
14
  medium: 600,
13
15
  large: 970
@@ -17,7 +19,6 @@ const PAGE_SIZE_LINES = {
17
19
  medium: 2,
18
20
  small: 3
19
21
  };
20
- const GAP = 6;
21
22
 
22
23
  async function filterAsync(arr, callback) {
23
24
  const fail = Symbol();
@@ -177,7 +178,7 @@ class TagList extends LocalizeCoreElement(InteractiveMixin(ArrowKeysMixin(LitEle
177
178
  }
178
179
  const clearableClasses = {
179
180
  'd2l-tag-list-clear-button': true,
180
- 'd2l-tag-list-clear-button-visible': this.clearable && this._items && this._items.length > 0
181
+ 'd2l-tag-list-clear-button-visible': this.clearable && this._items && this._items.length >= CLEAR_ALL_THRESHOLD
181
182
  };
182
183
 
183
184
  const containerClasses = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.23.3",
3
+ "version": "2.24.0",
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",