@brightspace-ui/labs 2.56.0 → 2.56.3

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.
Files changed (51) hide show
  1. package/demo/components/ou-filter/ouFilterDemoPage.js +14 -16
  2. package/package.json +4 -3
  3. package/src/components/accessibility-disability-simulator/accessibility-disability-simulator.js +70 -74
  4. package/src/components/accordion/accordion-collapse.js +161 -164
  5. package/src/components/accordion/accordion.js +14 -17
  6. package/src/components/attribute-picker/attribute-picker-item.js +63 -66
  7. package/src/components/attribute-picker/attribute-picker.js +116 -121
  8. package/src/components/card-overlay/card-overlay.js +53 -55
  9. package/src/components/checkbox-drawer/checkbox-drawer.js +32 -36
  10. package/src/components/community/community-base.js +3 -5
  11. package/src/components/community/community-button.js +3 -5
  12. package/src/components/community/community-link.js +4 -6
  13. package/src/components/file-uploader/file-uploader.js +148 -151
  14. package/src/components/grade-result/grade-result-icon-button.js +5 -6
  15. package/src/components/grade-result/grade-result-letter-score.js +18 -22
  16. package/src/components/grade-result/grade-result-numeric-score.js +25 -28
  17. package/src/components/grade-result/grade-result-presentational.js +133 -136
  18. package/src/components/grade-result/grade-result-student-grade-preview.js +38 -42
  19. package/src/components/media-player/media-player-audio-bars.js +28 -31
  20. package/src/components/media-player/media-player.js +503 -487
  21. package/src/components/media-player/slider-bar.js +119 -122
  22. package/src/components/navigation/navigation-band.js +69 -71
  23. package/src/components/navigation/navigation-button-icon.js +51 -55
  24. package/src/components/navigation/navigation-dropdown-button-custom.js +13 -17
  25. package/src/components/navigation/navigation-dropdown-button-icon.js +21 -25
  26. package/src/components/navigation/navigation-immersive.js +128 -132
  27. package/src/components/navigation/navigation-iterator.js +21 -25
  28. package/src/components/navigation/navigation-link-back.js +13 -17
  29. package/src/components/navigation/navigation-link-icon.js +36 -40
  30. package/src/components/navigation/navigation-link-image.js +31 -35
  31. package/src/components/navigation/navigation-link.js +34 -38
  32. package/src/components/navigation/navigation-main-footer.js +7 -9
  33. package/src/components/navigation/navigation-main-header.js +34 -36
  34. package/src/components/navigation/navigation-notification-icon.js +30 -34
  35. package/src/components/navigation/navigation.js +19 -23
  36. package/src/components/opt-in-flyout/flyout-impl.js +138 -146
  37. package/src/components/opt-in-flyout/opt-in-flyout.js +14 -18
  38. package/src/components/opt-in-flyout/opt-out-dialog.js +63 -67
  39. package/src/components/opt-in-flyout/opt-out-flyout.js +15 -19
  40. package/src/components/opt-in-flyout/opt-out-reason-selector.js +38 -45
  41. package/src/components/opt-in-flyout/opt-out-reason.js +9 -13
  42. package/src/components/ou-filter/ou-filter.js +14 -18
  43. package/src/components/ou-filter/tree-filter.js +22 -26
  44. package/src/components/ou-filter/tree-selector-node.js +62 -66
  45. package/src/components/ou-filter/tree-selector.js +55 -62
  46. package/src/components/pagination/pager-numeric.js +35 -39
  47. package/src/components/view-toggle/view-toggle.js +79 -81
  48. package/src/components/wizard/single-step-header.js +106 -110
  49. package/src/components/wizard/wizard-step.js +65 -68
  50. package/src/components/wizard/wizard.js +30 -33
  51. package/src/utilities/reactive-store/README.md +10 -15
@@ -13,74 +13,70 @@ const defaultEventProperties = {
13
13
 
14
14
  class OptOutDialog extends LocalizeLabsElement(LitElement) {
15
15
 
16
- static get properties() {
17
- return {
18
- hideReason: { type: Boolean, attribute: 'hide-reason' },
19
- hideFeedback: { type: Boolean, attribute: 'hide-feedback' }
20
- };
21
- }
16
+ static properties = {
17
+ hideReason: { type: Boolean, attribute: 'hide-reason' },
18
+ hideFeedback: { type: Boolean, attribute: 'hide-feedback' }
19
+ };
20
+
21
+ static styles = css`
22
+ :host {
23
+ height: 100%;
24
+ overflow: hidden;
25
+ pointer-events: auto;
26
+ position: absolute;
27
+ width: 100%;
28
+ z-index: 950;
29
+ }
22
30
 
23
- static get styles() {
24
- return css`
25
- :host {
26
- height: 100%;
27
- overflow: hidden;
28
- pointer-events: auto;
29
- position: absolute;
30
- width: 100%;
31
- z-index: 950;
32
- }
33
-
34
- .opt-out-modal-fade {
35
- background-color: #ffffff;
36
- height: 100%;
37
- opacity: 0.7;
38
- position: absolute;
39
- width: 100%;
40
- z-index: 1;
41
- }
42
-
43
- .dialog {
44
- background-color: #ffffff;
45
- border: 1px solid var(--d2l-color-mica);
46
- border-radius: 0.3rem;
47
- box-shadow: 0 2px 12px rgba(86, 90, 92, 0.25);
48
- box-sizing: border-box;
49
- left: 50%;
50
- max-width: 680px;
51
- padding: 1rem;
52
- position: absolute;
53
- top: 7.5%;
54
- transform: translateX(-50%);
55
- width: 90%;
56
- z-index: 2;
57
- }
58
-
59
- label {
60
- display: block;
61
- margin-bottom: 0.5rem;
62
- }
63
-
64
- #title-label {
65
- display: inline;
66
- font-weight: bold;
67
- }
68
-
69
- d2l-input-textarea {
70
- margin-bottom: 1rem;
71
- }
72
-
73
- d2l-button {
74
- margin-right: 1rem;
75
- }
76
-
77
- .close-button {
78
- inset-block-start: 0.6rem;
79
- inset-inline-end: 0.6rem;
80
- position: absolute;
81
- }
82
- `;
83
- }
31
+ .opt-out-modal-fade {
32
+ background-color: #ffffff;
33
+ height: 100%;
34
+ opacity: 0.7;
35
+ position: absolute;
36
+ width: 100%;
37
+ z-index: 1;
38
+ }
39
+
40
+ .dialog {
41
+ background-color: #ffffff;
42
+ border: 1px solid var(--d2l-color-mica);
43
+ border-radius: 0.3rem;
44
+ box-shadow: 0 2px 12px rgba(86, 90, 92, 0.25);
45
+ box-sizing: border-box;
46
+ left: 50%;
47
+ max-width: 680px;
48
+ padding: 1rem;
49
+ position: absolute;
50
+ top: 7.5%;
51
+ transform: translateX(-50%);
52
+ width: 90%;
53
+ z-index: 2;
54
+ }
55
+
56
+ label {
57
+ display: block;
58
+ margin-bottom: 0.5rem;
59
+ }
60
+
61
+ #title-label {
62
+ display: inline;
63
+ font-weight: bold;
64
+ }
65
+
66
+ d2l-input-textarea {
67
+ margin-bottom: 1rem;
68
+ }
69
+
70
+ d2l-button {
71
+ margin-right: 1rem;
72
+ }
73
+
74
+ .close-button {
75
+ inset-block-start: 0.6rem;
76
+ inset-inline-end: 0.6rem;
77
+ position: absolute;
78
+ }
79
+ `;
84
80
 
85
81
  constructor() {
86
82
  super();
@@ -4,26 +4,22 @@ import { css, html, LitElement } from 'lit';
4
4
 
5
5
  class OptOutFlyout extends LitElement {
6
6
 
7
- static get properties() {
8
- return {
9
- opened: { type: Boolean, reflect: true },
10
- flyoutTitle: { attribute: 'flyout-title', type: String },
11
- shortDescription: { type: String, attribute: 'short-description' },
12
- longDescription: { type: String, attribute: 'long-description' },
13
- tutorialLink: { type: String, attribute: 'tutorial-link' },
14
- helpDocsLink: { type: String, attribute: 'help-docs-link' },
15
- hideReason: { type: Boolean, attribute: 'hide-reason' },
16
- hideFeedback: { type: Boolean, attribute: 'hide-feedback' }
17
- };
18
- }
7
+ static properties = {
8
+ opened: { type: Boolean, reflect: true },
9
+ flyoutTitle: { attribute: 'flyout-title', type: String },
10
+ shortDescription: { type: String, attribute: 'short-description' },
11
+ longDescription: { type: String, attribute: 'long-description' },
12
+ tutorialLink: { type: String, attribute: 'tutorial-link' },
13
+ helpDocsLink: { type: String, attribute: 'help-docs-link' },
14
+ hideReason: { type: Boolean, attribute: 'hide-reason' },
15
+ hideFeedback: { type: Boolean, attribute: 'hide-feedback' }
16
+ };
19
17
 
20
- static get styles() {
21
- return css`
22
- d2l-labs-opt-in-flyout-impl {
23
- font-size: 20px;
24
- }
25
- `;
26
- }
18
+ static styles = css`
19
+ d2l-labs-opt-in-flyout-impl {
20
+ font-size: 20px;
21
+ }
22
+ `;
27
23
 
28
24
  constructor() {
29
25
  super();
@@ -5,52 +5,45 @@ import { LocalizeLabsElement } from '../localize-labs-element.js';
5
5
 
6
6
  class OptOutReasonSelector extends LocalizeLabsElement(LitElement) {
7
7
 
8
- static get properties() {
9
- return {
10
- _reasons: { state: true }
11
- };
12
- }
8
+ static properties = {
9
+ _reasons: { state: true }
10
+ };
11
+
12
+ static styles = [inputStyles, css`
13
+ label {
14
+ display: block;
15
+ margin-bottom: 0.5rem;
16
+ }
13
17
 
14
- static get styles() {
15
- return [
16
- inputStyles,
17
- css`
18
- label {
19
- display: block;
20
- margin-bottom: 0.5rem;
21
- }
22
-
23
- select {
24
- -moz-appearance: none;
25
- -webkit-appearance: none;
26
- appearance: none;
27
- background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2242%22%20height%3D%2242%22%20viewBox%3D%220%200%2042%2042%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill%3D%22%23f2f3f5%22%20d%3D%22M0%200h42v42H0z%22%2F%3E%3Cpath%20stroke%3D%22%23d3d9e3%22%20d%3D%22M0%200v42%22%2F%3E%3Cpath%20d%3D%22M14.99%2019.582l4.95%204.95a1.5%201.5%200%200%200%202.122%200l4.95-4.95a1.5%201.5%200%200%200-2.122-2.122L21%2021.35l-3.888-3.89a1.5%201.5%200%200%200-2.12%202.122z%22%20fill%3D%22%23565A5C%22%2F%3E%3C%2Fsvg%3E");
28
- background-position: var(--d2l-inline-end, right) center;
29
- background-repeat: no-repeat;
30
- background-size: contain;
31
- display: block;
32
- margin-bottom: 1.5rem !important;
33
- position: relative;
34
- width: 80%;
35
- }
36
-
37
- /* for ie11 - avoid displaying default select arrow */
38
- select::-ms-expand {
39
- display: none;
40
- }
41
-
42
- /* for ie11 - prevent background box from covering select arrow */
43
- select::-ms-value {
44
- background-color: transparent;
45
- color: var(--d2l-input-color);
46
- }
47
-
48
- #options {
49
- display: none;
50
- }
51
- `
52
- ];
53
- }
18
+ select {
19
+ -moz-appearance: none;
20
+ -webkit-appearance: none;
21
+ appearance: none;
22
+ background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2242%22%20height%3D%2242%22%20viewBox%3D%220%200%2042%2042%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill%3D%22%23f2f3f5%22%20d%3D%22M0%200h42v42H0z%22%2F%3E%3Cpath%20stroke%3D%22%23d3d9e3%22%20d%3D%22M0%200v42%22%2F%3E%3Cpath%20d%3D%22M14.99%2019.582l4.95%204.95a1.5%201.5%200%200%200%202.122%200l4.95-4.95a1.5%201.5%200%200%200-2.122-2.122L21%2021.35l-3.888-3.89a1.5%201.5%200%200%200-2.12%202.122z%22%20fill%3D%22%23565A5C%22%2F%3E%3C%2Fsvg%3E");
23
+ background-position: var(--d2l-inline-end, right) center;
24
+ background-repeat: no-repeat;
25
+ background-size: contain;
26
+ display: block;
27
+ margin-bottom: 1.5rem !important;
28
+ position: relative;
29
+ width: 80%;
30
+ }
31
+
32
+ /* for ie11 - avoid displaying default select arrow */
33
+ select::-ms-expand {
34
+ display: none;
35
+ }
36
+
37
+ /* for ie11 - prevent background box from covering select arrow */
38
+ select::-ms-value {
39
+ background-color: transparent;
40
+ color: var(--d2l-input-color);
41
+ }
42
+
43
+ #options {
44
+ display: none;
45
+ }
46
+ `];
54
47
 
55
48
  constructor() {
56
49
  super();
@@ -2,20 +2,16 @@ import { css, LitElement } from 'lit';
2
2
 
3
3
  class OptOutReason extends LitElement {
4
4
 
5
- static get properties() {
6
- return {
7
- key: { type: String },
8
- text: { type: String }
9
- };
10
- }
5
+ static properties = {
6
+ key: { type: String },
7
+ text: { type: String }
8
+ };
11
9
 
12
- static get styles() {
13
- return css`
14
- :host {
15
- display: none;
16
- }
17
- `;
18
- }
10
+ static styles = css`
11
+ :host {
12
+ display: none;
13
+ }
14
+ `;
19
15
 
20
16
  }
21
17
 
@@ -54,24 +54,20 @@ export class OuFilterDataManager {
54
54
  */
55
55
  class OuFilter extends LocalizeLabsElement(MobxLitElement) {
56
56
 
57
- static get properties() {
58
- return {
59
- dataManager: { type: Object, attribute: false },
60
- isSelectAllVisible: { type: Boolean, attribute: 'select-all-ui', reflect: true },
61
- disabled: { type: Boolean, attribute: 'disabled' }
62
- };
63
- }
64
-
65
- static get styles() {
66
- return css`
67
- :host {
68
- display: inline-block;
69
- }
70
- :host([hidden]) {
71
- display: none;
72
- }
73
- `;
74
- }
57
+ static properties = {
58
+ dataManager: { type: Object, attribute: false },
59
+ isSelectAllVisible: { type: Boolean, attribute: 'select-all-ui', reflect: true },
60
+ disabled: { type: Boolean, attribute: 'disabled' }
61
+ };
62
+
63
+ static styles = css`
64
+ :host {
65
+ display: inline-block;
66
+ }
67
+ :host([hidden]) {
68
+ display: none;
69
+ }
70
+ `;
75
71
 
76
72
  constructor() {
77
73
  super();
@@ -554,33 +554,29 @@ decorate(Tree, {
554
554
  */
555
555
  class TreeFilter extends LocalizeLabsElement(MobxLitElement) {
556
556
 
557
- static get properties() {
558
- return {
559
- tree: { type: Object, attribute: false },
560
- openerText: { type: String, attribute: 'opener-text' },
561
- openerTextSelected: { type: String, attribute: 'opener-text-selected' },
562
- searchString: { type: String, attribute: 'search-string', reflect: true },
563
- isLoadMoreSearch: { type: Boolean, attribute: 'load-more-search', reflect: true },
564
- isSelectAllVisible: { type: Boolean, attribute: 'select-all-ui', reflect: true },
565
- disabled: { type: Boolean, attribute: 'disabled' },
566
- _isLoadingSearch: { type: Boolean, attribute: false }
567
- };
568
- }
569
-
570
- static get styles() {
571
- return css`
572
- :host {
573
- display: inline-block;
574
- }
575
- :host([hidden]) {
576
- display: none;
577
- }
557
+ static properties = {
558
+ tree: { type: Object, attribute: false },
559
+ openerText: { type: String, attribute: 'opener-text' },
560
+ openerTextSelected: { type: String, attribute: 'opener-text-selected' },
561
+ searchString: { type: String, attribute: 'search-string', reflect: true },
562
+ isLoadMoreSearch: { type: Boolean, attribute: 'load-more-search', reflect: true },
563
+ isSelectAllVisible: { type: Boolean, attribute: 'select-all-ui', reflect: true },
564
+ disabled: { type: Boolean, attribute: 'disabled' },
565
+ _isLoadingSearch: { type: Boolean, attribute: false }
566
+ };
567
+
568
+ static styles = css`
569
+ :host {
570
+ display: inline-block;
571
+ }
572
+ :host([hidden]) {
573
+ display: none;
574
+ }
578
575
 
579
- d2l-button.d2l-tree-load-more {
580
- padding-bottom: 12px;
581
- }
582
- `;
583
- }
576
+ d2l-button.d2l-tree-load-more {
577
+ padding-bottom: 12px;
578
+ }
579
+ `;
584
580
 
585
581
  constructor() {
586
582
  super();
@@ -15,77 +15,73 @@ import { RtlMixin } from '@brightspace-ui/core/mixins/rtl-mixin.js';
15
15
  *
16
16
  */
17
17
  class TreeSelectorNode extends LocalizeLabsElement(RtlMixin(LitElement)) {
18
- static get properties() {
19
- return {
20
- name: { type: String },
21
- dataId: { type: Number, attribute: 'data-id' },
22
- isOpen: { type: Boolean, reflect: true, attribute: 'open' },
23
- selectedState: { type: String, reflect: true, attribute: 'selected-state' },
24
- isOpenable: { type: Boolean, reflect: true, attribute: 'openable' },
25
- // for screen readers
26
- indentLevel: { type: Number, attribute: 'indent-level' },
27
- parentName: { type: String, attribute: 'parent-name' },
28
- // for search: if isSearch, only search-result nodes are shown; the caller should ensure their ancestors are open
29
- isSearch: { type: Boolean, reflect: true, attribute: 'search' },
30
- isSearchResult: { type: Boolean, reflect: true, attribute: 'search-result' }
31
- };
32
- }
33
-
34
- static get styles() {
35
- return css`
36
- :host {
37
- display: block;
38
- font-size: 0.8rem;
39
- }
40
- :host([hidden]) {
41
- display: none;
42
- }
18
+ static properties = {
19
+ name: { type: String },
20
+ dataId: { type: Number, attribute: 'data-id' },
21
+ isOpen: { type: Boolean, reflect: true, attribute: 'open' },
22
+ selectedState: { type: String, reflect: true, attribute: 'selected-state' },
23
+ isOpenable: { type: Boolean, reflect: true, attribute: 'openable' },
24
+ // for screen readers
25
+ indentLevel: { type: Number, attribute: 'indent-level' },
26
+ parentName: { type: String, attribute: 'parent-name' },
27
+ // for search: if isSearch, only search-result nodes are shown; the caller should ensure their ancestors are open
28
+ isSearch: { type: Boolean, reflect: true, attribute: 'search' },
29
+ isSearchResult: { type: Boolean, reflect: true, attribute: 'search-result' }
30
+ };
31
+
32
+ static styles = css`
33
+ :host {
34
+ display: block;
35
+ font-size: 0.8rem;
36
+ }
37
+ :host([hidden]) {
38
+ display: none;
39
+ }
43
40
 
44
- .d2l-labs-tree-selector-node-node {
45
- display: flex;
46
- flex-wrap: nowrap;
47
- margin-bottom: 16px;
48
- }
41
+ .d2l-labs-tree-selector-node-node {
42
+ display: flex;
43
+ flex-wrap: nowrap;
44
+ margin-bottom: 16px;
45
+ }
49
46
 
50
- d2l-input-checkbox {
51
- display: inline-block;
52
- }
47
+ d2l-input-checkbox {
48
+ display: inline-block;
49
+ }
53
50
 
54
- .d2l-labs-tree-selector-node-open-control {
55
- cursor: default;
56
- margin-top: -3px;
57
- }
58
- .d2l-labs-tree-selector-node-open-control .d2l-labs-tree-selector-node-open {
59
- display: none;
60
- }
61
- .d2l-labs-tree-selector-node-open-control[open] .d2l-labs-tree-selector-node-open {
62
- display: inline-block;
63
- }
64
- .d2l-labs-tree-selector-node-open-control[open] .d2l-labs-tree-selector-node-closed {
65
- display: none;
66
- }
51
+ .d2l-labs-tree-selector-node-open-control {
52
+ cursor: default;
53
+ margin-top: -3px;
54
+ }
55
+ .d2l-labs-tree-selector-node-open-control .d2l-labs-tree-selector-node-open {
56
+ display: none;
57
+ }
58
+ .d2l-labs-tree-selector-node-open-control[open] .d2l-labs-tree-selector-node-open {
59
+ display: inline-block;
60
+ }
61
+ .d2l-labs-tree-selector-node-open-control[open] .d2l-labs-tree-selector-node-closed {
62
+ display: none;
63
+ }
67
64
 
68
- .d2l-labs-tree-selector-node-subtree {
69
- margin-left: 34px;
70
- margin-right: 0;
71
- }
72
- :host([dir="rtl"]) .d2l-labs-tree-selector-node-subtree {
73
- margin-left: 0;
74
- margin-right: 34px;
75
- }
76
- .d2l-labs-tree-selector-node-subtree[hidden] {
77
- display: none;
78
- }
65
+ .d2l-labs-tree-selector-node-subtree {
66
+ margin-left: 34px;
67
+ margin-right: 0;
68
+ }
69
+ :host([dir="rtl"]) .d2l-labs-tree-selector-node-subtree {
70
+ margin-left: 0;
71
+ margin-right: 34px;
72
+ }
73
+ .d2l-labs-tree-selector-node-subtree[hidden] {
74
+ display: none;
75
+ }
79
76
 
80
- .d2l-labs-tree-selector-node-text {
81
- cursor: default;
82
- display: inline-block;
83
- margin-left: 0.5rem;
84
- margin-right: 0.5rem;
85
- width: 100%;
86
- }
87
- `;
88
- }
77
+ .d2l-labs-tree-selector-node-text {
78
+ cursor: default;
79
+ display: inline-block;
80
+ margin-left: 0.5rem;
81
+ margin-right: 0.5rem;
82
+ width: 100%;
83
+ }
84
+ `;
89
85
 
90
86
  constructor() {
91
87
  super();
@@ -24,69 +24,62 @@ const DROPDOWN_WIDTH = 368;
24
24
  */
25
25
  class TreeSelector extends LocalizeLabsElement(LitElement) {
26
26
 
27
- static get properties() {
28
- return {
29
- name: { type: String },
30
- disabled: { type: Boolean, attribute: 'disabled' },
31
- isSelectAllVisible: { type: Boolean, attribute: 'select-all-ui', reflect: true },
32
- isSearch: { type: Boolean, attribute: 'search', reflect: true },
33
- isSelected: { type: Boolean, attribute: 'selected', reflect: true },
34
- _dropdownMinWidth: { type: Number },
35
- _dropdownMaxWidth: { type: Number },
36
- };
37
- }
27
+ static properties = {
28
+ name: { type: String },
29
+ disabled: { type: Boolean, attribute: 'disabled' },
30
+ isSelectAllVisible: { type: Boolean, attribute: 'select-all-ui', reflect: true },
31
+ isSearch: { type: Boolean, attribute: 'search', reflect: true },
32
+ isSelected: { type: Boolean, attribute: 'selected', reflect: true },
33
+ _dropdownMinWidth: { type: Number },
34
+ _dropdownMaxWidth: { type: Number },
35
+ };
36
+
37
+ static styles = [selectStyles, css`
38
+ :host {
39
+ display: inline-block;
40
+ }
41
+ :host([hidden]) {
42
+ display: none;
43
+ }
38
44
 
39
- static get styles() {
40
- return [
41
- selectStyles,
42
- css`
43
- :host {
44
- display: inline-block;
45
- }
46
- :host([hidden]) {
47
- display: none;
48
- }
49
-
50
- .d2l-labs-filter-dropdown-content-header {
51
- display: flex;
52
- justify-content: start;
53
- }
54
- .d2l-labs-filter-dropdown-content-header > span {
55
- align-self: center;
56
- }
57
-
58
- .d2l-labs-tree-selector-margin-button {
59
- margin-inline-end: 6px;
60
- }
61
-
62
- .d2l-labs-tree-selector-margin-auto {
63
- margin-inline-start: auto;
64
- }
65
-
66
- .d2l-labs-tree-selector-search {
67
- display: flex;
68
- flex-wrap: nowrap;
69
- padding-bottom: 26px;
70
- padding-top: 4px;
71
- }
72
- @media screen and (max-width: 400px) {
73
- .d2l-labs-tree-selector-search {
74
- width: 100%;
75
- }
76
- }
77
- :host([search]) d2l-dropdown d2l-dropdown-content .d2l-labs-tree-selector-tree {
78
- display: none;
79
- }
80
-
81
- .d2l-labs-tree-selector-search-results {
82
- display: none;
83
- }
84
- :host([search]) d2l-dropdown d2l-dropdown-content .d2l-labs-tree-selector-search-results {
85
- display: block;
86
- }
87
- `
88
- ];
89
- }
45
+ .d2l-labs-filter-dropdown-content-header {
46
+ display: flex;
47
+ justify-content: start;
48
+ }
49
+ .d2l-labs-filter-dropdown-content-header > span {
50
+ align-self: center;
51
+ }
52
+
53
+ .d2l-labs-tree-selector-margin-button {
54
+ margin-inline-end: 6px;
55
+ }
56
+
57
+ .d2l-labs-tree-selector-margin-auto {
58
+ margin-inline-start: auto;
59
+ }
60
+
61
+ .d2l-labs-tree-selector-search {
62
+ display: flex;
63
+ flex-wrap: nowrap;
64
+ padding-bottom: 26px;
65
+ padding-top: 4px;
66
+ }
67
+ @media screen and (max-width: 400px) {
68
+ .d2l-labs-tree-selector-search {
69
+ width: 100%;
70
+ }
71
+ }
72
+ :host([search]) d2l-dropdown d2l-dropdown-content .d2l-labs-tree-selector-tree {
73
+ display: none;
74
+ }
75
+
76
+ .d2l-labs-tree-selector-search-results {
77
+ display: none;
78
+ }
79
+ :host([search]) d2l-dropdown d2l-dropdown-content .d2l-labs-tree-selector-search-results {
80
+ display: block;
81
+ }
82
+ `];
90
83
 
91
84
  constructor() {
92
85
  super();