@brightspace-ui/core 3.204.1 → 3.204.2
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.
|
@@ -129,6 +129,7 @@ export const PopoverMixin = superclass => class extends superclass {
|
|
|
129
129
|
display: flex;
|
|
130
130
|
max-width: 370px;
|
|
131
131
|
min-width: 70px;
|
|
132
|
+
outline: var(--d2l-popover-outline-width, 0) solid var(--d2l-popover-outline-color, transparent);
|
|
132
133
|
width: 100vw;
|
|
133
134
|
}
|
|
134
135
|
.content-container {
|
|
@@ -515,7 +516,8 @@ export const PopoverMixin = superclass => class extends superclass {
|
|
|
515
516
|
|
|
516
517
|
const pointerClasses = {
|
|
517
518
|
'pointer': true,
|
|
518
|
-
'pointer-mirror': this._rtl
|
|
519
|
+
'pointer-mirror': this._rtl,
|
|
520
|
+
'vdiff-target': true
|
|
519
521
|
};
|
|
520
522
|
const pointer = !this._noPointer ? html`
|
|
521
523
|
<div class="${classMap(pointerClasses)}" style="${styleMap(pointerPositionStyles)}">
|
|
@@ -960,11 +962,11 @@ export const PopoverMixin = superclass => class extends superclass {
|
|
|
960
962
|
|
|
961
963
|
if (this._preferredPosition.span === positionSpans.all && centerDelta <= 0) {
|
|
962
964
|
// center with target (opener wider than content)
|
|
963
|
-
return contentXAdjustment * -1;
|
|
965
|
+
return (contentXAdjustment + 1.5) * -1; // 1.5px to account for extra 3px that is being applied to width
|
|
964
966
|
}
|
|
965
967
|
if (this._preferredPosition.span === positionSpans.all && spaceAround.left > contentXAdjustment && spaceAround.right > contentXAdjustment) {
|
|
966
968
|
// center with target (content wider than opener and enough space around)
|
|
967
|
-
return contentXAdjustment * -1;
|
|
969
|
+
return (contentXAdjustment + 1.5) * -1; // 1.5px to account for extra 3px that is being applied to width
|
|
968
970
|
}
|
|
969
971
|
|
|
970
972
|
if (!this._rtl) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.204.
|
|
3
|
+
"version": "3.204.2",
|
|
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",
|