@brightspace-ui/core 3.267.1 → 3.268.0
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/components/alert/alert-toast.js +98 -102
- package/components/alert/alert.js +109 -113
- package/components/backdrop/backdrop-dirty-overlay.js +13 -17
- package/components/backdrop/backdrop-loading.js +105 -109
- package/components/backdrop/backdrop.js +50 -54
- package/components/breadcrumbs/breadcrumb-current-page.js +19 -23
- package/components/breadcrumbs/breadcrumb.js +50 -54
- package/components/breadcrumbs/breadcrumbs.js +34 -38
- package/components/button/button-add.js +156 -164
- package/components/button/button-copy-mixin.js +9 -11
- package/components/button/button-copy.js +15 -19
- package/components/button/button-icon.js +110 -114
- package/components/button/button-move.js +153 -157
- package/components/button/button-split-item.js +16 -20
- package/components/button/button-split.js +70 -74
- package/components/button/button-subtle-copy.js +17 -19
- package/components/button/button-subtle.js +145 -149
- package/components/button/button-toggle.js +25 -29
- package/components/button/button.js +70 -74
- package/components/button/floating-buttons.js +63 -67
- package/components/calendar/calendar.js +244 -248
- package/components/card/card-content-meta.js +13 -15
- package/components/card/card-content-title.js +9 -11
- package/components/card/card-footer-link.js +76 -80
- package/components/card/card-loading-shimmer.js +35 -39
- package/components/card/card.js +188 -192
- package/components/collapsible-panel/collapsible-panel-group.js +17 -21
- package/components/collapsible-panel/collapsible-panel-summary-item.js +27 -31
- package/components/collapsible-panel/collapsible-panel.js +258 -262
- package/components/count-badge/count-badge-icon.js +12 -16
- package/components/count-badge/count-badge-mixin.js +124 -128
- package/components/count-badge/count-badge.js +2 -4
- package/components/description-list/description-list-wrapper.js +27 -31
- package/components/dialog/dialog-confirm.js +55 -59
- package/components/dialog/dialog-fullscreen.js +128 -132
- package/components/dialog/dialog-mixin.js +39 -41
- package/components/dialog/dialog.js +61 -65
- package/components/dropdown/dropdown-button-subtle.js +21 -25
- package/components/dropdown/dropdown-button.js +31 -35
- package/components/dropdown/dropdown-context-menu.js +28 -31
- package/components/dropdown/dropdown-menu.js +27 -31
- package/components/dropdown/dropdown-more.js +23 -26
- package/components/dropdown/dropdown-opener-mixin.js +44 -46
- package/components/dropdown/dropdown-popover-mixin.js +155 -159
- package/components/dropdown/dropdown-tabs.js +5 -7
- package/components/dropdown/dropdown.js +1 -3
- package/components/empty-state/empty-state-action-button.js +18 -22
- package/components/empty-state/empty-state-action-link.js +14 -18
- package/components/empty-state/empty-state-illustrated.js +21 -25
- package/components/empty-state/empty-state-simple.js +8 -12
- package/components/expand-collapse/expand-collapse-content.js +48 -52
- package/components/filter/filter-dimension-set-date-text-value.js +34 -36
- package/components/filter/filter-dimension-set-date-time-range-value.js +45 -47
- package/components/filter/filter-dimension-set-empty-state.js +17 -19
- package/components/filter/filter-dimension-set-value.js +27 -29
- package/components/filter/filter-dimension-set.js +65 -67
- package/components/filter/filter-overflow-group.js +15 -19
- package/components/filter/filter-tags.js +16 -19
- package/components/filter/filter.js +115 -119
- package/components/focus-trap/focus-trap.js +17 -21
- package/components/form/form-element-mixin.js +33 -35
- package/components/form/form-error-summary.js +37 -42
- package/components/form/form.js +33 -37
- package/components/hierarchical-view/hierarchical-view-mixin.js +76 -80
- package/components/hierarchical-view/hierarchical-view.js +5 -7
- package/components/html-block/html-block.js +45 -49
- package/components/icons/icon-custom.js +20 -24
- package/components/icons/icon.js +20 -24
- package/components/icons/slotted-icon-mixin.js +16 -18
- package/components/inputs/input-checkbox-group.js +34 -38
- package/components/inputs/input-checkbox.js +106 -110
- package/components/inputs/input-color.js +142 -148
- package/components/inputs/input-date-range.js +90 -94
- package/components/inputs/input-date-time-range-to.js +70 -74
- package/components/inputs/input-date-time-range.js +110 -115
- package/components/inputs/input-date-time.js +75 -79
- package/components/inputs/input-date.js +101 -105
- package/components/inputs/input-fieldset.js +37 -43
- package/components/inputs/input-group.js +10 -12
- package/components/inputs/input-inline-help.js +4 -6
- package/components/inputs/input-number.js +112 -118
- package/components/inputs/input-percent.js +52 -58
- package/components/inputs/input-radio-group.js +45 -49
- package/components/inputs/input-radio-spacer.js +11 -13
- package/components/inputs/input-radio.js +62 -66
- package/components/inputs/input-search.js +63 -68
- package/components/inputs/input-select-styles.js +30 -25
- package/components/inputs/input-text.js +245 -251
- package/components/inputs/input-textarea.js +128 -132
- package/components/inputs/input-time-range.js +100 -104
- package/components/inputs/input-time.js +107 -113
- package/components/link/link-mixin.js +37 -41
- package/components/link/link.js +113 -119
- package/components/list/list-controls.js +25 -29
- package/components/list/list-item-button-mixin.js +10 -12
- package/components/list/list-item-checkbox-mixin.js +35 -37
- package/components/list/list-item-content.js +33 -35
- package/components/list/list-item-drag-drop-mixin.js +45 -47
- package/components/list/list-item-drag-handle.js +80 -84
- package/components/list/list-item-drag-image.js +77 -81
- package/components/list/list-item-expand-collapse-mixin.js +17 -19
- package/components/list/list-item-generic-layout.js +222 -226
- package/components/list/list-item-link-mixin.js +10 -12
- package/components/list/list-item-mixin.js +68 -70
- package/components/list/list-item-nav-mixin.js +17 -19
- package/components/list/list-item-placement-marker.js +65 -67
- package/components/list/list-item-role-mixin.js +9 -11
- package/components/list/list-item.js +7 -9
- package/components/list/list.js +121 -125
- package/components/loading-spinner/loading-spinner.js +93 -97
- package/custom-elements.json +1920 -6694
- package/helpers/focus.js +5 -1
- package/package.json +3 -2
|
@@ -16,155 +16,151 @@ import { SlottedIconMixin } from '../icons/slotted-icon-mixin.js';
|
|
|
16
16
|
*/
|
|
17
17
|
class ButtonSubtle extends SlottedIconMixin(ButtonMixin(LitElement)) {
|
|
18
18
|
|
|
19
|
-
static
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
:
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}
|
|
165
|
-
`
|
|
166
|
-
];
|
|
167
|
-
}
|
|
19
|
+
static properties = {
|
|
20
|
+
/**
|
|
21
|
+
* ACCESSIBILITY: A description to be added to the button for accessibility when text on button does not provide enough context
|
|
22
|
+
* @type {string}
|
|
23
|
+
*/
|
|
24
|
+
description: { type: String },
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Aligns the leading edge of text if value is set to "text" for left-aligned layouts, the trailing edge of text if value is set to "text-end" for right-aligned layouts
|
|
28
|
+
* @type {'text'|'text-end'|''}
|
|
29
|
+
*/
|
|
30
|
+
hAlign: { type: String, reflect: true, attribute: 'h-align' },
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Indicates that the icon should be rendered on right
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
*/
|
|
36
|
+
iconRight: { type: Boolean, reflect: true, attribute: 'icon-right' },
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Whether to render the slimmer version of the button
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
*/
|
|
42
|
+
slim: { type: Boolean, reflect: true },
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* ACCESSIBILITY: REQUIRED: Text for the button
|
|
46
|
+
* @type {string}
|
|
47
|
+
*/
|
|
48
|
+
text: { type: String, reflect: true }
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
static styles = [super.styles, labelStyles, buttonStyles,
|
|
52
|
+
css`
|
|
53
|
+
:host {
|
|
54
|
+
--d2l-count-badge-background-color: var(--d2l-theme-background-color-interactive-primary-default);
|
|
55
|
+
--d2l-count-badge-foreground-color: var(--d2l-theme-text-color-static-inverted);
|
|
56
|
+
display: inline-block;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:host([hidden]) {
|
|
60
|
+
display: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
button {
|
|
64
|
+
--d2l-button-subtle-padding-inline-start: 0.6rem;
|
|
65
|
+
--d2l-button-subtle-padding-inline-end: 0.6rem;
|
|
66
|
+
align-items: center;
|
|
67
|
+
background-color: var(--d2l-theme-background-color-interactive-tertiary-default);
|
|
68
|
+
border-color: transparent;
|
|
69
|
+
column-gap: 0.3rem;
|
|
70
|
+
display: inline-flex;
|
|
71
|
+
font-family: inherit;
|
|
72
|
+
padding-block-end: 0;
|
|
73
|
+
padding-block-start: 0;
|
|
74
|
+
padding-inline-end: var(--d2l-button-subtle-padding-inline-end);
|
|
75
|
+
padding-inline-start: var(--d2l-button-subtle-padding-inline-start);
|
|
76
|
+
position: relative;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:host([slim]) button {
|
|
80
|
+
--d2l-button-subtle-padding-inline-start: 0.5rem;
|
|
81
|
+
--d2l-button-subtle-padding-inline-end: 0.5rem;
|
|
82
|
+
min-height: 1.5rem;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:host([slim]) button.d2l-button-subtle-has-icon {
|
|
86
|
+
--d2l-button-subtle-padding-inline-start: 0.4rem;
|
|
87
|
+
--d2l-button-subtle-padding-inline-end: 0.5rem;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:host([slim][icon-right]) button.d2l-button-subtle-has-icon {
|
|
91
|
+
--d2l-button-subtle-padding-inline-start: 0.5rem;
|
|
92
|
+
--d2l-button-subtle-padding-inline-end: 0.4rem;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:host([h-align="text"]) button {
|
|
96
|
+
inset-inline-start: calc(var(--d2l-button-subtle-padding-inline-start) * -1);
|
|
97
|
+
}
|
|
98
|
+
:host([h-align="text-end"]) button {
|
|
99
|
+
inset-inline-end: calc(var(--d2l-button-subtle-padding-inline-end) * -1);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* Firefox includes a hidden border which messes up button dimensions */
|
|
103
|
+
button::-moz-focus-inner {
|
|
104
|
+
border: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
button[disabled]:hover,
|
|
108
|
+
button[disabled]:focus,
|
|
109
|
+
:host([active]) button[disabled] {
|
|
110
|
+
background-color: var(--d2l-theme-background-color-interactive-tertiary-default);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
button:hover,
|
|
114
|
+
button:focus,
|
|
115
|
+
:host([active]) button {
|
|
116
|
+
background-color: var(--d2l-theme-background-color-interactive-tertiary-hover);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.d2l-button-subtle-content {
|
|
120
|
+
color: var(--d2l-theme-text-color-interactive-default);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
button:hover:not([disabled]) .d2l-button-subtle-content,
|
|
124
|
+
button:focus:not([disabled]) .d2l-button-subtle-content,
|
|
125
|
+
:host([active]:not([disabled])) button .d2l-button-subtle-content {
|
|
126
|
+
color: var(--d2l-theme-text-color-interactive-hover);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
button:hover:not([disabled]),
|
|
130
|
+
button:focus:not([disabled]),
|
|
131
|
+
:host([active]:not([disabled])) {
|
|
132
|
+
--d2l-count-badge-background-color: var(--d2l-theme-text-color-interactive-hover);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.property-icon,
|
|
136
|
+
slot[name="icon"]::slotted(d2l-icon-custom) {
|
|
137
|
+
color: var(--d2l-theme-text-color-interactive-default);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
button:hover:not([disabled]) .property-icon,
|
|
141
|
+
button:focus:not([disabled]) .property-icon,
|
|
142
|
+
:host([active]:not([disabled])) button .property-icon,
|
|
143
|
+
button:hover:not([disabled]) slot[name="icon"]::slotted(d2l-icon-custom),
|
|
144
|
+
button:focus:not([disabled]) slot[name="icon"]::slotted(d2l-icon-custom),
|
|
145
|
+
:host([active]:not([disabled])) slot[name="icon"]::slotted(d2l-icon-custom) {
|
|
146
|
+
color: var(--d2l-theme-text-color-interactive-hover);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
:host([icon-right]) .property-icon,
|
|
150
|
+
:host([icon-right]) slot[name="icon"]::slotted(d2l-icon-custom) {
|
|
151
|
+
order: 1;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.d2l-button-subtle-content-wrapper slot {
|
|
155
|
+
color: var(--d2l-theme-text-color-static-standard);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
:host([disabled]) button {
|
|
159
|
+
cursor: default;
|
|
160
|
+
opacity: var(--d2l-theme-opacity-disabled-control);
|
|
161
|
+
}
|
|
162
|
+
`
|
|
163
|
+
];
|
|
168
164
|
|
|
169
165
|
constructor() {
|
|
170
166
|
super();
|
|
@@ -6,35 +6,31 @@ import { css, html, LitElement } from 'lit';
|
|
|
6
6
|
*/
|
|
7
7
|
class ButtonToggle extends LitElement {
|
|
8
8
|
|
|
9
|
-
static
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
display: contents;
|
|
35
|
-
}
|
|
36
|
-
`;
|
|
37
|
-
}
|
|
9
|
+
static properties = {
|
|
10
|
+
/**
|
|
11
|
+
* Pressed state
|
|
12
|
+
* @type {boolean}
|
|
13
|
+
*/
|
|
14
|
+
pressed: { type: Boolean, reflect: true }
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
static styles = css`
|
|
18
|
+
:host {
|
|
19
|
+
display: inline-block;
|
|
20
|
+
}
|
|
21
|
+
:host([hidden]) {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
::slotted(:not(d2l-button-icon, d2l-button-subtle)),
|
|
25
|
+
:host slot[name="pressed"],
|
|
26
|
+
:host([pressed]) slot[name="not-pressed"] {
|
|
27
|
+
display: none;
|
|
28
|
+
}
|
|
29
|
+
:host slot[name="not-pressed"],
|
|
30
|
+
:host([pressed]) slot[name="pressed"] {
|
|
31
|
+
display: contents;
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
38
34
|
|
|
39
35
|
constructor() {
|
|
40
36
|
super();
|
|
@@ -13,88 +13,84 @@ import { labelStyles } from '../typography/styles.js';
|
|
|
13
13
|
*/
|
|
14
14
|
class Button extends ButtonMixin(LitElement) {
|
|
15
15
|
|
|
16
|
-
static
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
description: { type: String },
|
|
16
|
+
static properties = {
|
|
17
|
+
/**
|
|
18
|
+
* ACCESSIBILITY: A description to be added to the button for accessibility when text on button does not provide enough context
|
|
19
|
+
* @type {string}
|
|
20
|
+
*/
|
|
21
|
+
description: { type: String },
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
23
|
+
/**
|
|
24
|
+
* Styles the button as a primary button
|
|
25
|
+
* @type {boolean}
|
|
26
|
+
*/
|
|
27
|
+
primary: { type: Boolean, reflect: true }
|
|
28
|
+
};
|
|
31
29
|
|
|
32
|
-
static
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
:
|
|
39
|
-
|
|
40
|
-
}
|
|
30
|
+
static styles = [ labelStyles, buttonStyles,
|
|
31
|
+
css`
|
|
32
|
+
:host {
|
|
33
|
+
display: inline-block;
|
|
34
|
+
}
|
|
35
|
+
:host([hidden]) {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
41
38
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
39
|
+
button {
|
|
40
|
+
font-family: inherit;
|
|
41
|
+
padding-block-end: 0;
|
|
42
|
+
padding-block-start: 0;
|
|
43
|
+
padding-inline-end: var(--d2l-button-padding-inline-end, 1.5rem);
|
|
44
|
+
padding-inline-start: var(--d2l-button-padding-inline-start, 1.5rem);
|
|
45
|
+
width: 100%;
|
|
46
|
+
}
|
|
50
47
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
/* Firefox includes a hidden border which messes up button dimensions */
|
|
49
|
+
button::-moz-focus-inner {
|
|
50
|
+
border: 0;
|
|
51
|
+
}
|
|
55
52
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
53
|
+
button,
|
|
54
|
+
button[disabled]:hover,
|
|
55
|
+
button[disabled]:focus,
|
|
56
|
+
:host([active]) button[disabled] {
|
|
57
|
+
background-color: var(--d2l-theme-background-color-interactive-secondary-default);
|
|
58
|
+
color: var(--d2l-theme-text-color-static-standard);
|
|
59
|
+
}
|
|
63
60
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
61
|
+
button:hover,
|
|
62
|
+
button:focus,
|
|
63
|
+
:host([active]) button {
|
|
64
|
+
background-color: var(--d2l-theme-background-color-interactive-secondary-hover);
|
|
65
|
+
}
|
|
69
66
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
67
|
+
:host([disabled]) button {
|
|
68
|
+
cursor: default;
|
|
69
|
+
position: relative;
|
|
70
|
+
}
|
|
71
|
+
:host([disabled]) button::before {
|
|
72
|
+
background-color: var(--d2l-theme-background-color-base);
|
|
73
|
+
border-radius: inherit;
|
|
74
|
+
content: "";
|
|
75
|
+
inset: 0;
|
|
76
|
+
opacity: var(--d2l-theme-opacity-disabled-control);
|
|
77
|
+
position: absolute;
|
|
78
|
+
}
|
|
82
79
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
80
|
+
:host([primary]) button,
|
|
81
|
+
:host([primary]) button[disabled]:hover,
|
|
82
|
+
:host([primary]) button[disabled]:focus,
|
|
83
|
+
:host([primary][active]) button[disabled] {
|
|
84
|
+
background-color: var(--d2l-theme-background-color-interactive-primary-default);
|
|
85
|
+
color: var(--d2l-theme-text-color-static-inverted);
|
|
86
|
+
}
|
|
87
|
+
:host([primary]) button:hover,
|
|
88
|
+
:host([primary]) button:focus,
|
|
89
|
+
:host([primary][active]) button {
|
|
90
|
+
background-color: var(--d2l-theme-background-color-interactive-primary-hover);
|
|
91
|
+
}
|
|
92
|
+
`
|
|
93
|
+
];
|
|
98
94
|
|
|
99
95
|
constructor() {
|
|
100
96
|
super();
|