@brightspace-ui/core 2.76.0 → 2.76.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,25 @@
|
|
|
2
2
|
|
|
3
3
|
A collapsible panel is a container that can be expanded and collapsed to show/hide additional content and form options. Content within the panel is flexible and customizable -- form controls, buttons, text, and more can be put in the expanded version of this panel for users to interact with or view.
|
|
4
4
|
|
|
5
|
+
<!-- docs: demo -->
|
|
6
|
+
```html
|
|
7
|
+
<script type="module">
|
|
8
|
+
import '@brightspace-ui/core/components/collapsible-panel/collapsible-panel.js';
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<d2l-collapsible-panel panel-title="Availability Dates and Conditions">
|
|
12
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas odio ligula, aliquam efficitur sollicitudin non, dignissim quis nisl. Nullam rutrum, lectus sed finibus consectetur, dolor leo blandit lorem, vitae consectetur arcu enim ornare tortor.
|
|
13
|
+
</d2l-collapsible-panel>
|
|
14
|
+
|
|
15
|
+
<d2l-collapsible-panel type="subtle" panel-title="Availability Dates and Conditions">
|
|
16
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas odio ligula, aliquam efficitur sollicitudin non, dignissim quis nisl. Nullam rutrum, lectus sed finibus consectetur, dolor leo blandit lorem, vitae consectetur arcu enim ornare tortor.
|
|
17
|
+
</d2l-collapsible-panel>
|
|
18
|
+
|
|
19
|
+
<d2l-collapsible-panel type="inline" panel-title="Availability Dates and Conditions">
|
|
20
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas odio ligula, aliquam efficitur sollicitudin non, dignissim quis nisl. Nullam rutrum, lectus sed finibus consectetur, dolor leo blandit lorem, vitae consectetur arcu enim ornare tortor.
|
|
21
|
+
</d2l-collapsible-panel>
|
|
22
|
+
```
|
|
23
|
+
|
|
5
24
|
## Best Practices
|
|
6
25
|
|
|
7
26
|
<!-- docs: start best practices -->
|
|
@@ -20,14 +39,12 @@ A collapsible panel is a container that can be expanded and collapsed to show/hi
|
|
|
20
39
|
<!-- docs: end donts -->
|
|
21
40
|
<!-- docs: end best practices -->
|
|
22
41
|
|
|
23
|
-
## Composition
|
|
24
|
-
|
|
25
42
|
|
|
26
43
|
## Collapsible Panel [d2l-collapsible-panel]
|
|
27
44
|
|
|
28
45
|
The `d2l-collapsible-panel` element is a container that provides specific layout slots such as `header`, `summary`, `actions`, and a default slot for the expanded content.
|
|
29
46
|
|
|
30
|
-
<!-- docs: demo live name:d2l-collapsible-panel
|
|
47
|
+
<!-- docs: demo live name:d2l-collapsible-panel -->
|
|
31
48
|
```html
|
|
32
49
|
<script type="module">
|
|
33
50
|
import '@brightspace-ui/core/components/collapsible-panel/collapsible-panel.js';
|
|
@@ -36,14 +53,6 @@ The `d2l-collapsible-panel` element is a container that provides specific layout
|
|
|
36
53
|
<d2l-collapsible-panel panel-title="Availability Dates and Conditions">
|
|
37
54
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas odio ligula, aliquam efficitur sollicitudin non, dignissim quis nisl. Nullam rutrum, lectus sed finibus consectetur, dolor leo blandit lorem, vitae consectetur arcu enim ornare tortor.
|
|
38
55
|
</d2l-collapsible-panel>
|
|
39
|
-
|
|
40
|
-
<d2l-collapsible-panel type="subtle" panel-title="Availability Dates and Conditions">
|
|
41
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas odio ligula, aliquam efficitur sollicitudin non, dignissim quis nisl. Nullam rutrum, lectus sed finibus consectetur, dolor leo blandit lorem, vitae consectetur arcu enim ornare tortor.
|
|
42
|
-
</d2l-collapsible-panel>
|
|
43
|
-
|
|
44
|
-
<d2l-collapsible-panel type="inline" panel-title="Availability Dates and Conditions">
|
|
45
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas odio ligula, aliquam efficitur sollicitudin non, dignissim quis nisl. Nullam rutrum, lectus sed finibus consectetur, dolor leo blandit lorem, vitae consectetur arcu enim ornare tortor.
|
|
46
|
-
</d2l-collapsible-panel>
|
|
47
56
|
```
|
|
48
57
|
|
|
49
58
|
<!-- docs: start hidden content -->
|
|
@@ -73,7 +82,7 @@ The `d2l-collapsible-panel` element is a container that provides specific layout
|
|
|
73
82
|
|
|
74
83
|
### Panel Types
|
|
75
84
|
|
|
76
|
-
<!-- docs: demo
|
|
85
|
+
<!-- docs: demo -->
|
|
77
86
|
```html
|
|
78
87
|
<script type="module">
|
|
79
88
|
import '@brightspace-ui/core/components/collapsible-panel/collapsible-panel.js';
|
|
@@ -95,7 +104,7 @@ The `d2l-collapsible-panel` element is a container that provides specific layout
|
|
|
95
104
|
## Summary Items [d2l-collapsible-panel-summary-item]
|
|
96
105
|
The summary area takes information from the expanded panel and summarizes it for the collapsed version. This can help the user understand what information is inside the panel without having to click on it.
|
|
97
106
|
|
|
98
|
-
<!-- docs: demo
|
|
107
|
+
<!-- docs: demo -->
|
|
99
108
|
```html
|
|
100
109
|
<script type="module">
|
|
101
110
|
import '@brightspace-ui/core/components/collapsible-panel/collapsible-panel.js';
|
|
@@ -117,7 +126,7 @@ The summary area takes information from the expanded panel and summarizes it for
|
|
|
117
126
|
Collapsible panels have two optional slots, `actions` and `header` that can be used to add more information to the header area.
|
|
118
127
|
|
|
119
128
|
|
|
120
|
-
<!-- docs: demo
|
|
129
|
+
<!-- docs: demo -->
|
|
121
130
|
```html
|
|
122
131
|
<script type="module">
|
|
123
132
|
import '@brightspace-ui/core/components/button/button-icon.js';
|
|
@@ -159,6 +168,6 @@ By default, the panel is described by screen readers with the `panel-title` attr
|
|
|
159
168
|
|
|
160
169
|
### Keyboard behaviour
|
|
161
170
|
|
|
162
|
-
|
|
171
|
+
On focus, a focus ring (blue border) goes around the clickable area of the component. When collapsed, this area is the entire panel; when expanded, it's only the header.
|
|
163
172
|
|
|
164
173
|
Any focusable actions placed in the `actions` slot will receive focus after the panel recevies focus. The open/close icon beside the `actions` slot looks like a button, but is an indicator of component state. It will not receive focus like a typical button.
|
|
@@ -187,7 +187,7 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
[slot="content"] ::slotted([slot="illustration"]),
|
|
190
|
-
[slot="content"] .d2l-list-item-illustration * {
|
|
190
|
+
[slot="content"] .d2l-list-item-illustration > * {
|
|
191
191
|
border-radius: 6px;
|
|
192
192
|
flex-grow: 0;
|
|
193
193
|
flex-shrink: 0;
|
|
@@ -197,7 +197,7 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
197
197
|
overflow: hidden;
|
|
198
198
|
}
|
|
199
199
|
:host([dir="rtl"]) [slot="content"] ::slotted([slot="illustration"]),
|
|
200
|
-
:host([dir="rtl"]) [slot="content"] .d2l-list-item-illustration * {
|
|
200
|
+
:host([dir="rtl"]) [slot="content"] .d2l-list-item-illustration > * {
|
|
201
201
|
margin-left: 0.9rem;
|
|
202
202
|
margin-right: 0;
|
|
203
203
|
}
|
|
@@ -212,7 +212,7 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
::slotted([slot="actions"]),
|
|
215
|
-
.d2l-list-item-actions * {
|
|
215
|
+
.d2l-list-item-actions > * {
|
|
216
216
|
display: grid;
|
|
217
217
|
gap: 0.3rem;
|
|
218
218
|
grid-auto-columns: 1fr;
|
|
@@ -220,45 +220,45 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
.d2l-list-item-content-extend-separators ::slotted([slot="actions"]),
|
|
223
|
-
.d2l-list-item-content-extend-separators .d2l-list-item-actions * {
|
|
223
|
+
.d2l-list-item-content-extend-separators .d2l-list-item-actions > * {
|
|
224
224
|
margin-right: 0.9rem;
|
|
225
225
|
}
|
|
226
226
|
:host([dir="rtl"]) .d2l-list-item-content-extend-separators ::slotted([slot="actions"]),
|
|
227
|
-
:host([dir="rtl"]) .d2l-list-item-content-extend-separators .d2l-list-item-actions * {
|
|
227
|
+
:host([dir="rtl"]) .d2l-list-item-content-extend-separators .d2l-list-item-actions > * {
|
|
228
228
|
margin-left: 0.9rem;
|
|
229
229
|
margin-right: 0;
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
[data-breakpoint="1"] ::slotted([slot="illustration"]),
|
|
233
|
-
[data-breakpoint="1"] .d2l-list-item-illustration * {
|
|
233
|
+
[data-breakpoint="1"] .d2l-list-item-illustration > * {
|
|
234
234
|
margin-right: 1rem;
|
|
235
235
|
max-height: 3.55rem;
|
|
236
236
|
max-width: 6rem;
|
|
237
237
|
}
|
|
238
238
|
:host([dir="rtl"]) [data-breakpoint="1"] ::slotted([slot="illustration"]),
|
|
239
|
-
:host([dir="rtl"]) [data-breakpoint="1"] .d2l-list-item-illustration * {
|
|
239
|
+
:host([dir="rtl"]) [data-breakpoint="1"] .d2l-list-item-illustration > * {
|
|
240
240
|
margin-left: 1rem;
|
|
241
241
|
margin-right: 0;
|
|
242
242
|
}
|
|
243
243
|
[data-breakpoint="2"] ::slotted([slot="illustration"]),
|
|
244
|
-
[data-breakpoint="2"] .d2l-list-item-illustration * {
|
|
244
|
+
[data-breakpoint="2"] .d2l-list-item-illustration > * {
|
|
245
245
|
margin-right: 1rem;
|
|
246
246
|
max-height: 5.1rem;
|
|
247
247
|
max-width: 9rem;
|
|
248
248
|
}
|
|
249
249
|
:host([dir="rtl"]) [data-breakpoint="2"] ::slotted([slot="illustration"]),
|
|
250
|
-
:host([dir="rtl"]) [data-breakpoint="2"] .d2l-list-item-illustration * {
|
|
250
|
+
:host([dir="rtl"]) [data-breakpoint="2"] .d2l-list-item-illustration > * {
|
|
251
251
|
margin-left: 1rem;
|
|
252
252
|
margin-right: 0;
|
|
253
253
|
}
|
|
254
254
|
[data-breakpoint="3"] ::slotted([slot="illustration"]),
|
|
255
|
-
[data-breakpoint="3"] .d2l-list-item-illustration * {
|
|
255
|
+
[data-breakpoint="3"] .d2l-list-item-illustration > * {
|
|
256
256
|
margin-right: 1rem;
|
|
257
257
|
max-height: 6rem;
|
|
258
258
|
max-width: 10.8rem;
|
|
259
259
|
}
|
|
260
260
|
:host([dir="rtl"]) [data-breakpoint="3"] ::slotted([slot="illustration"]),
|
|
261
|
-
:host([dir="rtl"]) [data-breakpoint="3"] .d2l-list-item-illustration * {
|
|
261
|
+
:host([dir="rtl"]) [data-breakpoint="3"] .d2l-list-item-illustration > * {
|
|
262
262
|
margin-left: 1rem;
|
|
263
263
|
margin-right: 0;
|
|
264
264
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.76.
|
|
3
|
+
"version": "2.76.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",
|