@brightspace-ui/core 1.221.0 → 1.222.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.
|
@@ -15,7 +15,7 @@ const reduceMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
|
15
15
|
const minBackdropHeightMobile = 42;
|
|
16
16
|
const minBackdropWidthMobile = 30;
|
|
17
17
|
const outerMarginTopBottom = 18;
|
|
18
|
-
const defaultVerticalOffset =
|
|
18
|
+
const defaultVerticalOffset = 16;
|
|
19
19
|
|
|
20
20
|
export const DropdownContentMixin = superclass => class extends LocalizeCoreElement(RtlMixin(superclass)) {
|
|
21
21
|
|
|
@@ -16,7 +16,7 @@ export const dropdownContentStyles = css`
|
|
|
16
16
|
left: 0;
|
|
17
17
|
position: absolute;
|
|
18
18
|
text-align: left;
|
|
19
|
-
top: calc(100% + var(--d2l-dropdown-verticaloffset,
|
|
19
|
+
top: calc(100% + var(--d2l-dropdown-verticaloffset, 16px));
|
|
20
20
|
width: 100%;
|
|
21
21
|
z-index: 1000; /* position on top of floating buttons */
|
|
22
22
|
}
|
|
@@ -38,7 +38,7 @@ export const dropdownContentStyles = css`
|
|
|
38
38
|
|
|
39
39
|
:host([opened-above]) {
|
|
40
40
|
animation: var(--d2l-dropdown-above-animation-name) 300ms ease;
|
|
41
|
-
bottom: calc(100% + var(--d2l-dropdown-verticaloffset,
|
|
41
|
+
bottom: calc(100% + var(--d2l-dropdown-verticaloffset, 16px));
|
|
42
42
|
top: auto;
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -49,7 +49,7 @@ export const dropdownContentStyles = css`
|
|
|
49
49
|
|
|
50
50
|
:host([data-mobile][opened-above]:not([mobile-tray])) {
|
|
51
51
|
animation: var(--d2l-dropdown-above-animation-name) 300ms ease;
|
|
52
|
-
bottom: calc(100% + var(--d2l-dropdown-verticaloffset,
|
|
52
|
+
bottom: calc(100% + var(--d2l-dropdown-verticaloffset, 16px));
|
|
53
53
|
top: auto;
|
|
54
54
|
}
|
|
55
55
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.222.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",
|