@brightspace-ui/core 3.27.2 → 3.27.4
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)
|
@@ -117,7 +117,7 @@ class Button extends ButtonMixin(LitElement) {
|
|
117
117
|
<slot></slot>
|
118
118
|
</button>
|
119
119
|
${this.description ? html`<span id="${this._describedById}" hidden>${this.description}</span>` : null}
|
120
|
-
${this.disabled && this.disabledTooltip ? html`<d2l-tooltip for="${this._buttonId}">${this.disabledTooltip}</d2l-tooltip>` : ''}
|
120
|
+
${this.disabled && this.disabledTooltip ? html`<d2l-tooltip class="vdiff-target" for="${this._buttonId}">${this.disabledTooltip}</d2l-tooltip>` : ''}
|
121
121
|
`;
|
122
122
|
}
|
123
123
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "3.27.
|
3
|
+
"version": "3.27.4",
|
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",
|