@brightspace-ui/core 3.159.5 → 3.159.6
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.
@@ -10,7 +10,7 @@ class FormErrorSummary extends LocalizeCoreElement(LitElement) {
|
|
10
10
|
return {
|
11
11
|
errors: { type: Object, attribute: false },
|
12
12
|
_expanded: { type: Boolean, attribute: false },
|
13
|
-
|
13
|
+
_hasTopMargin: { type: Boolean, attribute: '_has-top-margin', reflect: true },
|
14
14
|
_hasErrors: { type: Boolean, attribute: '_has-errors', reflect: true },
|
15
15
|
};
|
16
16
|
}
|
@@ -24,8 +24,8 @@ class FormErrorSummary extends LocalizeCoreElement(LitElement) {
|
|
24
24
|
:host([hidden]) {
|
25
25
|
display: none;
|
26
26
|
}
|
27
|
-
:host([_has-
|
28
|
-
margin-block-
|
27
|
+
:host([_has-top-margin][_has-errors]) {
|
28
|
+
margin-block-start: 1rem;
|
29
29
|
}
|
30
30
|
|
31
31
|
.d2l-form-error-summary-header {
|
@@ -58,7 +58,7 @@ class FormErrorSummary extends LocalizeCoreElement(LitElement) {
|
|
58
58
|
super();
|
59
59
|
this.errors = [];
|
60
60
|
this._expanded = true;
|
61
|
-
this.
|
61
|
+
this._hasTopMargin = false;
|
62
62
|
this._hasErrors = false;
|
63
63
|
}
|
64
64
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "3.159.
|
3
|
+
"version": "3.159.6",
|
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",
|
@@ -643,9 +643,12 @@ class TemplatePrimarySecondary extends LocalizeCoreElement(LitElement) {
|
|
643
643
|
main {
|
644
644
|
flex: 2 0 0;
|
645
645
|
overflow-x: hidden;
|
646
|
-
padding: var(--d2l-template-primary-secondary-primary-padding, 0);
|
647
646
|
transition: none;
|
648
647
|
}
|
648
|
+
main d2l-form-error-summary {
|
649
|
+
margin-inline: var(--d2l-template-primary-secondary-form-error-inline-margin, 20px);
|
650
|
+
}
|
651
|
+
|
649
652
|
:host([resizable]) main {
|
650
653
|
flex: 1 0 0;
|
651
654
|
}
|
@@ -1052,7 +1055,7 @@ class TemplatePrimarySecondary extends LocalizeCoreElement(LitElement) {
|
|
1052
1055
|
'd2l-template-scroll': isWindows
|
1053
1056
|
};
|
1054
1057
|
const primarySection = html`<main class="${classMap(scrollClasses)}">
|
1055
|
-
${this.hasForm ? html`<d2l-form-error-summary _has-
|
1058
|
+
${this.hasForm ? html`<d2l-form-error-summary _has-top-margin id="form-error-summary"></d2l-form-error-summary>` : nothing}
|
1056
1059
|
<slot name="primary"></slot>
|
1057
1060
|
</main>`;
|
1058
1061
|
const secondarySection = html`
|