@brightspace-ui/core 2.73.1 → 2.74.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.
|
@@ -35,6 +35,8 @@ class ExpandCollapseContent extends LitElement {
|
|
|
35
35
|
static get styles() {
|
|
36
36
|
return css`
|
|
37
37
|
:host {
|
|
38
|
+
--d2l-expand-collapse-content-transition-duration: 0.2s;
|
|
39
|
+
--d2l-expand-collapse-content-transition-function: cubic-bezier(0.4, 0.4, 0.25, 1);
|
|
38
40
|
display: block;
|
|
39
41
|
}
|
|
40
42
|
|
|
@@ -43,19 +45,28 @@ class ExpandCollapseContent extends LitElement {
|
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
.d2l-expand-collapse-content-container {
|
|
46
|
-
display:
|
|
48
|
+
display: block;
|
|
49
|
+
opacity: 0;
|
|
47
50
|
overflow: hidden;
|
|
48
|
-
transition:
|
|
51
|
+
transition:
|
|
52
|
+
height var(--d2l-expand-collapse-content-transition-duration) var(--d2l-expand-collapse-content-transition-function),
|
|
53
|
+
opacity var(--d2l-expand-collapse-content-transition-duration) var(--d2l-expand-collapse-content-transition-function);
|
|
49
54
|
}
|
|
50
55
|
|
|
51
|
-
.d2l-expand-collapse-content-container
|
|
52
|
-
display:
|
|
56
|
+
.d2l-expand-collapse-content-container[data-state="collapsed"] {
|
|
57
|
+
display: none;
|
|
53
58
|
}
|
|
54
59
|
|
|
55
60
|
.d2l-expand-collapse-content-container[data-state="expanded"] {
|
|
56
61
|
overflow: visible;
|
|
57
62
|
}
|
|
58
63
|
|
|
64
|
+
|
|
65
|
+
.d2l-expand-collapse-content-container[data-state="expanded"],
|
|
66
|
+
.d2l-expand-collapse-content-container[data-state="expanding"] {
|
|
67
|
+
opacity: 1;
|
|
68
|
+
}
|
|
69
|
+
|
|
59
70
|
/* prevent margin colapse on slotted children */
|
|
60
71
|
.d2l-expand-collapse-content-inner::before,
|
|
61
72
|
.d2l-expand-collapse-content-inner::after {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.74.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",
|