@brightspace-ui/labs 1.2.3 → 1.2.4
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.
package/package.json
CHANGED
|
@@ -17,13 +17,14 @@
|
|
|
17
17
|
"start": "web-dev-server --node-resolve --open --watch",
|
|
18
18
|
"test": "npm run lint && npm run test:translations && npm run test:unit",
|
|
19
19
|
"test:translations": "mfv -e -s en -p ./lang/ -i untranslated",
|
|
20
|
-
"test:unit": "d2l-test-runner"
|
|
20
|
+
"test:unit": "d2l-test-runner",
|
|
21
|
+
"test:vdiff": "d2l-test-runner vdiff"
|
|
21
22
|
},
|
|
22
23
|
"author": "D2L Corporation",
|
|
23
24
|
"license": "Apache-2.0",
|
|
24
25
|
"devDependencies": {
|
|
25
26
|
"@brightspace-ui/stylelint-config": "^0.8",
|
|
26
|
-
"@brightspace-ui/testing": "^0.
|
|
27
|
+
"@brightspace-ui/testing": "^0.29",
|
|
27
28
|
"@web/dev-server": "^0.3",
|
|
28
29
|
"eslint": "^8",
|
|
29
30
|
"eslint-config-brightspace": "^0.25",
|
|
@@ -41,5 +42,5 @@
|
|
|
41
42
|
"@brightspace-ui/core": "^2",
|
|
42
43
|
"lit": "^2"
|
|
43
44
|
},
|
|
44
|
-
"version": "1.2.
|
|
45
|
+
"version": "1.2.4"
|
|
45
46
|
}
|
|
@@ -375,7 +375,7 @@ class FlyoutImplementation extends composeMixins(
|
|
|
375
375
|
${this._renderLinksText()}
|
|
376
376
|
</div>
|
|
377
377
|
<div class="flyout-buttons">
|
|
378
|
-
<d2l-button id="primary-button" primary
|
|
378
|
+
<d2l-button id="primary-button" primary @click="${this._clickOptIn}">${this._getPrimaryButtonText()}</d2l-button>
|
|
379
379
|
<d2l-button id="opt-out-button" @click="${this._clickOptOut}">${this._getSecondaryButtonText()}</d2l-button>
|
|
380
380
|
</div>
|
|
381
381
|
</div>
|
|
@@ -114,8 +114,7 @@ class OptOutDialog extends composeMixins(
|
|
|
114
114
|
<label id="title-label">${this.localize('components:optInFlyout:feedbackTitle')}</label>
|
|
115
115
|
<br><br>
|
|
116
116
|
<div ?hidden="${this.hideReason}">
|
|
117
|
-
<
|
|
118
|
-
<d2l-labs-opt-out-reason-selector id="reason-selector" aria-labelledby="reason-label" @selected="${this._handleSelected}">
|
|
117
|
+
<d2l-labs-opt-out-reason-selector id="reason-selector" @selected="${this._handleSelected}">
|
|
119
118
|
<slot></slot>
|
|
120
119
|
</d2l-labs-opt-out-reason-selector>
|
|
121
120
|
</div>
|
|
@@ -20,6 +20,11 @@ class OptOutReasonSelector extends composeMixins(
|
|
|
20
20
|
return [
|
|
21
21
|
inputStyles,
|
|
22
22
|
css`
|
|
23
|
+
label {
|
|
24
|
+
display: block;
|
|
25
|
+
margin-bottom: 0.5rem;
|
|
26
|
+
}
|
|
27
|
+
|
|
23
28
|
select {
|
|
24
29
|
-moz-appearance: none;
|
|
25
30
|
-webkit-appearance: none;
|
|
@@ -68,6 +73,7 @@ class OptOutReasonSelector extends composeMixins(
|
|
|
68
73
|
|
|
69
74
|
render() {
|
|
70
75
|
return html`
|
|
76
|
+
<label for="selector">${this.localize('components:optInFlyout:feedbackReasonLabel')}</label>
|
|
71
77
|
<select class="d2l-input" id="selector" @change="${this._reasonSelected}" onload="${this.focus()}">
|
|
72
78
|
<option disabled="" value="">${this.localize('components:optInFlyout:feedbackChooseReason')}</option>
|
|
73
79
|
${this._reasons.map((item) => html`<option value="${item.key}">${item.text}</option>`)}
|