@brightspace-ui/core 3.336.0 → 3.336.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.
|
@@ -2,6 +2,7 @@ import '../selection/selection-input.js';
|
|
|
2
2
|
import { css, html, nothing } from 'lit';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
4
|
import { getUniqueId } from '../../helpers/uniqueId.js';
|
|
5
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
5
6
|
import { isInteractiveInListItemComposedPath } from './list-item-mixin.js';
|
|
6
7
|
import { SelectionInfo } from '../selection/selection-mixin.js';
|
|
7
8
|
import { SkeletonMixin } from '../skeleton/skeleton-mixin.js';
|
|
@@ -191,6 +192,7 @@ export const ListItemCheckboxMixin = superclass => class extends SkeletonMixin(s
|
|
|
191
192
|
_renderCheckboxAction(inner) {
|
|
192
193
|
return this.selectable ? html`
|
|
193
194
|
<div class="d2l-checkbox-action"
|
|
195
|
+
aria-hidden="${ifDefined(inner ? undefined : 'true')}"
|
|
194
196
|
@click="${this._onCheckboxActionClick}"
|
|
195
197
|
@mouseenter="${this._onMouseEnterSelection}"
|
|
196
198
|
@mouseleave="${this._onMouseLeaveSelection}">
|
|
@@ -2,6 +2,7 @@ import '../button/button-icon.js';
|
|
|
2
2
|
import '../loading-spinner/loading-spinner.js';
|
|
3
3
|
import { css, html, nothing } from 'lit';
|
|
4
4
|
import { EventSubscriberController } from '../../controllers/subscriber/subscriberControllers.js';
|
|
5
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
5
6
|
import { isInteractiveInListItemComposedPath } from './list-item-mixin.js';
|
|
6
7
|
import { SkeletonMixin } from '../skeleton/skeleton-mixin.js';
|
|
7
8
|
|
|
@@ -48,6 +49,9 @@ export const ListItemExpandCollapseMixin = superclass => class extends SkeletonM
|
|
|
48
49
|
padding-inline-end: 0.3rem;
|
|
49
50
|
width: 1.2rem;
|
|
50
51
|
}
|
|
52
|
+
:host([_render-expand-collapse-slot]:not([expandable])) .d2l-list-expand-collapse {
|
|
53
|
+
pointer-events: none;
|
|
54
|
+
}
|
|
51
55
|
.d2l-list-expand-collapse-action {
|
|
52
56
|
cursor: pointer;
|
|
53
57
|
display: block;
|
|
@@ -139,7 +143,7 @@ export const ListItemExpandCollapseMixin = superclass => class extends SkeletonM
|
|
|
139
143
|
return nothing;
|
|
140
144
|
}
|
|
141
145
|
|
|
142
|
-
return html`<div class="d2l-list-expand-collapse-action" @click="${this._toggleExpandCollapseAction}">${content || nothing}</div>`;
|
|
146
|
+
return html`<div class="d2l-list-expand-collapse-action" aria-hidden="${ifDefined(content ? undefined : 'true')}" @click="${this._toggleExpandCollapseAction}">${content || nothing}</div>`;
|
|
143
147
|
}
|
|
144
148
|
|
|
145
149
|
_renderNestedLoadingSpinner() {
|
|
@@ -1023,6 +1023,7 @@ export const ListItemMixin = superclass => class extends composeMixins(
|
|
|
1023
1023
|
<div class="${classMap(colorClasses)}" style="${styleMap(colorStyles)}"></div>
|
|
1024
1024
|
</div>` : nothing}
|
|
1025
1025
|
<div slot="expand-collapse"
|
|
1026
|
+
aria-hidden="true"
|
|
1026
1027
|
class="d2l-list-expand-collapse"
|
|
1027
1028
|
@click="${this._toggleExpandCollapse}"
|
|
1028
1029
|
@mouseenter="${this._onMouseEnterControl}"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.336.
|
|
3
|
+
"version": "3.336.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",
|