@brightspace-ui/core 3.27.3 → 3.27.5
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.
@@ -8,6 +8,7 @@ import { buttonStyles } from './button-styles.js';
|
|
8
8
|
import { getFocusPseudoClass } from '../../helpers/focus.js';
|
9
9
|
import { getUniqueId } from '../../helpers/uniqueId.js';
|
10
10
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
11
|
+
import { PropertyRequiredMixin } from '../../mixins/property-required/property-required-mixin.js';
|
11
12
|
import { RtlMixin } from '../../mixins/rtl/rtl-mixin.js';
|
12
13
|
import { ThemeMixin } from '../../mixins/theme/theme-mixin.js';
|
13
14
|
|
@@ -15,7 +16,7 @@ import { ThemeMixin } from '../../mixins/theme/theme-mixin.js';
|
|
15
16
|
* A button component that can be used just like the native button for instances where only an icon is displayed.
|
16
17
|
* @slot icon - Optional slot for a custom icon
|
17
18
|
*/
|
18
|
-
class ButtonIcon extends ThemeMixin(ButtonMixin(VisibleOnAncestorMixin(RtlMixin(LitElement)))) {
|
19
|
+
class ButtonIcon extends PropertyRequiredMixin(ThemeMixin(ButtonMixin(VisibleOnAncestorMixin(RtlMixin(LitElement))))) {
|
19
20
|
|
20
21
|
static get properties() {
|
21
22
|
return {
|
@@ -35,13 +36,13 @@ class ButtonIcon extends ThemeMixin(ButtonMixin(VisibleOnAncestorMixin(RtlMixin(
|
|
35
36
|
* REQUIRED: Preset icon key (e.g. "tier1:gear")
|
36
37
|
* @type {string}
|
37
38
|
*/
|
38
|
-
icon: { type: String, reflect: true },
|
39
|
+
icon: { type: String, reflect: true, required: true },
|
39
40
|
|
40
41
|
/**
|
41
42
|
* ACCESSIBILITY: REQUIRED: Accessible text for the button
|
42
43
|
* @type {string}
|
43
44
|
*/
|
44
|
-
text: { type: String, reflect: true },
|
45
|
+
text: { type: String, reflect: true, required: true },
|
45
46
|
|
46
47
|
/**
|
47
48
|
* Indicates to display translucent (e.g., on rich backgrounds)
|
@@ -455,6 +455,8 @@ class ListItemGenericLayout extends RtlMixin(LitElement) {
|
|
455
455
|
const nestedListItems = [...nestedList.children].filter(node => node.role === 'rowgroup');
|
456
456
|
if (nestedListItems.length) {
|
457
457
|
previousElement = nestedListItems[nestedListItems.length - 1];
|
458
|
+
} else {
|
459
|
+
break;
|
458
460
|
}
|
459
461
|
}
|
460
462
|
} while (nestedList);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "3.27.
|
3
|
+
"version": "3.27.5",
|
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",
|