@brightspace-ui/core 2.150.1 → 2.150.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.
@@ -170,8 +170,8 @@ class InputDateRange extends FocusMixin(SkeletonMixin(FormElementMixin(RtlMixin(
|
|
170
170
|
render() {
|
171
171
|
const startDateInput = this.shadowRoot && this.shadowRoot.querySelector('.d2l-input-date-range-start');
|
172
172
|
const endDateInput = this.shadowRoot && this.shadowRoot.querySelector('.d2l-input-date-range-end');
|
173
|
-
const tooltipStart = (this.validationError && !this.startOpened && !this.childErrors.has(startDateInput)) ? html`<d2l-tooltip align="start" announced for="${this._startInputId}" state="error">${this.validationError}</d2l-tooltip>` : null;
|
174
|
-
const tooltipEnd = (this.validationError && !this.endOpened && !this.childErrors.has(endDateInput)) ? html`<d2l-tooltip align="start" announced for="${this._endInputId}" state="error">${this.validationError}</d2l-tooltip>` : null;
|
173
|
+
const tooltipStart = (this.validationError && !this.startOpened && !this.childErrors.has(startDateInput)) ? html`<d2l-tooltip align="start" announced for="${this._startInputId}" state="error" class="vdiff-target">${this.validationError}</d2l-tooltip>` : null;
|
174
|
+
const tooltipEnd = (this.validationError && !this.endOpened && !this.childErrors.has(endDateInput)) ? html`<d2l-tooltip align="start" announced for="${this._endInputId}" state="error" class="vdiff-target">${this.validationError}</d2l-tooltip>` : null;
|
175
175
|
return html`
|
176
176
|
${tooltipStart}
|
177
177
|
${tooltipEnd}
|
@@ -187,7 +187,7 @@ class InputDateRange extends FocusMixin(SkeletonMixin(FormElementMixin(RtlMixin(
|
|
187
187
|
<d2l-input-date
|
188
188
|
?novalidate="${this.noValidate}"
|
189
189
|
@change="${this._handleChange}"
|
190
|
-
class="d2l-input-date-range-start"
|
190
|
+
class="d2l-input-date-range-start vdiff-target"
|
191
191
|
@d2l-input-date-dropdown-toggle="${this._handleDropdownToggle}"
|
192
192
|
?disabled="${this.disabled}"
|
193
193
|
.forceInvalid=${this.invalid}
|
@@ -205,7 +205,7 @@ class InputDateRange extends FocusMixin(SkeletonMixin(FormElementMixin(RtlMixin(
|
|
205
205
|
<d2l-input-date
|
206
206
|
?novalidate="${this.noValidate}"
|
207
207
|
@change="${this._handleChange}"
|
208
|
-
class="d2l-input-date-range-end"
|
208
|
+
class="d2l-input-date-range-end vdiff-target"
|
209
209
|
@d2l-input-date-dropdown-toggle="${this._handleDropdownToggle}"
|
210
210
|
?disabled="${this.disabled}"
|
211
211
|
.forceInvalid=${this.invalid}
|
@@ -241,10 +241,11 @@ class InputDate extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixin(
|
|
241
241
|
const icon = (this.invalid || this.childErrors.size > 0)
|
242
242
|
? html`<d2l-icon icon="tier1:alert" slot="left" style="${styleMap({ color: 'var(--d2l-color-cinnabar)' })}"></d2l-icon>`
|
243
243
|
: html`<d2l-icon icon="tier1:calendar" slot="left"></d2l-icon>`;
|
244
|
-
const errorTooltip = (this.validationError && !this.opened && this.childErrors.size === 0) ? html`<d2l-tooltip align="start" announced for="${this._inputId}" state="error">${this.validationError}</d2l-tooltip>` : null;
|
244
|
+
const errorTooltip = (this.validationError && !this.opened && this.childErrors.size === 0) ? html`<d2l-tooltip align="start" announced for="${this._inputId}" state="error" class="vdiff-target">${this.validationError}</d2l-tooltip>` : null;
|
245
245
|
|
246
246
|
const dropdownContent = this._dropdownFirstOpened ? html`
|
247
247
|
<d2l-dropdown-content
|
248
|
+
class="vdiff-target"
|
248
249
|
@d2l-dropdown-close="${this._handleDropdownClose}"
|
249
250
|
@d2l-dropdown-open="${this._handleDropdownOpen}"
|
250
251
|
@d2l-dropdown-focus-enter="${this._handleFocusTrapEnter}"
|
@@ -281,7 +282,7 @@ class InputDate extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixin(
|
|
281
282
|
aria-invalid="${this.invalid ? 'true' : 'false'}"
|
282
283
|
@blur="${this._handleInputTextBlur}"
|
283
284
|
@change="${this._handleChange}"
|
284
|
-
class="d2l-dropdown-opener"
|
285
|
+
class="d2l-dropdown-opener vdiff-target"
|
285
286
|
instructions="${ifDefined((this._showInfoTooltip && !errorTooltip && !this.invalid && this.childErrors.size === 0 && this._inputTextFocusShowTooltip) ? this.localize(`${this._namespace}.openInstructions`, { format: shortDateFormat }) : undefined)}"
|
286
287
|
description="${ifDefined(this.emptyText ? this.emptyText : undefined)}"
|
287
288
|
?disabled="${this.disabled}"
|
@@ -227,6 +227,7 @@ export const TagListItemMixin = superclass => class extends LocalizeCoreElement(
|
|
227
227
|
if (this.keyboardTooltipItem && !this.keyboardTooltipShown) {
|
228
228
|
tooltip = html`
|
229
229
|
<d2l-tooltip
|
230
|
+
class="vdiff-target"
|
230
231
|
align="start"
|
231
232
|
@d2l-tooltip-hide="${this._handleKeyboardTooltipHide}"
|
232
233
|
@d2l-tooltip-show="${this._handleKeyboardTooltipShow}"
|
@@ -236,7 +237,7 @@ export const TagListItemMixin = superclass => class extends LocalizeCoreElement(
|
|
236
237
|
} else if (options.hasTruncationTooltip || hasDescription) {
|
237
238
|
const tooltipHeader = hasDescription ? html`<div class="d2l-heading-4">${tagContent}</div>` : tagContent;
|
238
239
|
tooltip = html`
|
239
|
-
<d2l-tooltip for="${this._id}" ?show-truncated-only="${!hasDescription}">
|
240
|
+
<d2l-tooltip class="vdiff-target" for="${this._id}" ?show-truncated-only="${!hasDescription}">
|
240
241
|
${tooltipHeader}
|
241
242
|
${hasDescription ? options.description : nothing}
|
242
243
|
</d2l-tooltip>`;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "2.150.
|
3
|
+
"version": "2.150.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",
|