@brightspace-ui/core 1.207.2 → 1.207.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.
- package/README.md +1 -1
- package/components/alert/demo/alert-toast.html +0 -2
- package/components/alert/demo/alert.html +0 -2
- package/components/button/demo/button-icon.html +4 -4
- package/components/button/demo/floating-buttons-in-frame.html +9 -9
- package/components/button/demo/floating-buttons-in-tabs.html +40 -41
- package/components/card/demo/card.html +18 -18
- package/components/dropdown/demo/dropdown-context-menu.html +7 -7
- package/components/dropdown/demo/dropdown-menu.html +6 -6
- package/components/dropdown/demo/dropdown-more.html +4 -4
- package/components/focus-trap/demo/focus-trap.html +1 -1
- package/components/inputs/demo/input-checkbox.html +2 -2
- package/components/inputs/demo/input-radio.html +1 -1
- package/components/list/demo/list-item-layouts.html +1 -1
- package/components/list/demo/list.html +1 -1
- package/components/menu/demo/checkbox-menu.html +2 -2
- package/components/menu/demo/menu.html +4 -4
- package/components/menu/demo/radio-menu.html +2 -2
- package/components/meter/demo/meter.html +8 -8
- package/components/selection/demo/selection.html +1 -1
- package/components/status-indicator/demo/status-indicator.html +4 -4
- package/components/table/demo/table.html +1 -1
- package/components/tooltip/demo/tooltip.html +2 -2
- package/helpers/demo/gestures.html +1 -1
- package/mixins/async-container/demo/async-container.html +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -141,7 +141,7 @@ npx mocha './**/*.visual-diff.js' -t 10000 --require esm --golden
|
|
|
141
141
|
|
|
142
142
|
> TL;DR: Commits prefixed with `fix:` and `feat:` will trigger patch and minor releases when merged to `main`. Read on for more details...
|
|
143
143
|
|
|
144
|
-
The [
|
|
144
|
+
The [semantic-release GitHub Action](https://github.com/BrightspaceUI/actions/tree/master/semantic-release) is called from the `release.yml` GitHub Action workflow to handle version changes and releasing.
|
|
145
145
|
|
|
146
146
|
### Version Changes
|
|
147
147
|
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
position: relative;
|
|
15
15
|
}
|
|
16
16
|
.ancestor-container::before {
|
|
17
|
-
background-color: rgba(0,0,0,0.03);
|
|
17
|
+
background-color: rgba(0, 0, 0, 0.03);
|
|
18
18
|
box-sizing: border-box;
|
|
19
19
|
content: 'visible-on-ancestor-target';
|
|
20
20
|
font-size: 0.7rem;
|
|
21
21
|
height: 100%;
|
|
22
22
|
left: 0;
|
|
23
23
|
padding: 0.5rem;
|
|
24
|
-
position: absolute
|
|
24
|
+
position: absolute;
|
|
25
25
|
text-align: right;
|
|
26
26
|
top: 0;
|
|
27
27
|
width: 100%;
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
text-align: left;
|
|
31
31
|
}
|
|
32
32
|
.translucent-container {
|
|
33
|
-
position: relative;
|
|
34
33
|
height: 150px;
|
|
34
|
+
position: relative;
|
|
35
35
|
}
|
|
36
36
|
.translucent-container > img {
|
|
37
37
|
border-radius: 6px;
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
width: 300px;
|
|
44
44
|
}
|
|
45
45
|
.translucent-container > d2l-button-icon {
|
|
46
|
-
margin-top: 12px;
|
|
47
46
|
margin-left: 12px;
|
|
47
|
+
margin-top: 12px;
|
|
48
48
|
}
|
|
49
49
|
[dir="rtl"].translucent-container > d2l-button-icon {
|
|
50
50
|
margin-left: 0;
|
|
@@ -8,26 +8,26 @@
|
|
|
8
8
|
import '../../demo/demo-page.js';
|
|
9
9
|
</script>
|
|
10
10
|
<style>
|
|
11
|
-
#demoContainer{
|
|
12
|
-
display:inline-block;
|
|
13
|
-
width: 100%;
|
|
11
|
+
#demoContainer {
|
|
12
|
+
display: inline-block;
|
|
14
13
|
min-height: 200px;
|
|
14
|
+
width: 100%;
|
|
15
15
|
}
|
|
16
16
|
#leftFrame {
|
|
17
|
-
|
|
17
|
+
float: left;
|
|
18
18
|
height: 505px;
|
|
19
19
|
min-height: 200px;
|
|
20
|
-
float:left;
|
|
21
|
-
resize: both;
|
|
22
20
|
overflow: auto;
|
|
21
|
+
resize: both;
|
|
22
|
+
width: 30%;
|
|
23
23
|
}
|
|
24
24
|
#rightFrame {
|
|
25
|
-
|
|
25
|
+
float: left;
|
|
26
26
|
height: 505px;
|
|
27
27
|
min-height: 200px;
|
|
28
|
-
float:left;
|
|
29
|
-
resize: both;
|
|
30
28
|
overflow: auto;
|
|
29
|
+
resize: both;
|
|
30
|
+
width: 65%;
|
|
31
31
|
}
|
|
32
32
|
</style>
|
|
33
33
|
</head>
|
|
@@ -12,85 +12,84 @@
|
|
|
12
12
|
<style>
|
|
13
13
|
/* ripping these off for now until we can get a local tabs menu to test this on. */
|
|
14
14
|
.vui-tabmenu {
|
|
15
|
-
border-bottom: 1px solid #
|
|
16
|
-
|
|
15
|
+
border-bottom: 1px solid #dddddd;
|
|
16
|
+
list-style: none;
|
|
17
17
|
margin-bottom: 0;
|
|
18
18
|
margin-top: 0;
|
|
19
|
-
|
|
19
|
+
padding-left: 0;
|
|
20
20
|
}
|
|
21
|
-
.vui-tabmenu
|
|
22
|
-
display: table;
|
|
21
|
+
.vui-tabmenu::after, .vui-tabmenu::before {
|
|
23
22
|
content: " ";
|
|
23
|
+
display: table;
|
|
24
24
|
}
|
|
25
|
-
.vui-tabmenu
|
|
25
|
+
.vui-tabmenu::after {
|
|
26
26
|
clear: both;
|
|
27
27
|
}
|
|
28
|
-
.vui-tabmenu
|
|
28
|
+
.vui-tabmenu > .vui-tabmenu-item {
|
|
29
|
+
display: block;
|
|
29
30
|
float: left;
|
|
30
31
|
margin-bottom: -1px;
|
|
32
|
+
overflow: hidden;
|
|
31
33
|
position: relative;
|
|
32
|
-
display: block;
|
|
33
34
|
text-align: center;
|
|
34
|
-
overflow: hidden;
|
|
35
35
|
}
|
|
36
|
-
.vui-tabmenu
|
|
37
|
-
margin-right: 2px;
|
|
38
|
-
line-height: 1.428571429;
|
|
36
|
+
.vui-tabmenu > .vui-tabmenu-item > a {
|
|
39
37
|
border: 1px solid transparent;
|
|
40
|
-
|
|
38
|
+
color: #a2a2a2;
|
|
41
39
|
display: block;
|
|
40
|
+
line-height: 1.428571429;
|
|
41
|
+
margin-right: 2px;
|
|
42
42
|
padding: 10px 15px;
|
|
43
|
-
|
|
43
|
+
position: relative;
|
|
44
44
|
}
|
|
45
|
-
.vui-tabmenu
|
|
46
|
-
margin-right:
|
|
45
|
+
.vui-tabmenu > .vui-tabmenu-item:last-child > a {
|
|
46
|
+
margin-right: 0;
|
|
47
47
|
}
|
|
48
|
-
.vui-tabmenu
|
|
49
|
-
color: #
|
|
48
|
+
.vui-tabmenu > .vui-tabmenu-item > a:hover {
|
|
49
|
+
color: #666666;
|
|
50
50
|
}
|
|
51
|
-
.vui-tabmenu
|
|
52
|
-
color: #
|
|
53
|
-
|
|
54
|
-
border: 1px solid #ddd;
|
|
51
|
+
.vui-tabmenu > .vui-tabmenu-item-select > a {
|
|
52
|
+
background-color: #fafafa;
|
|
53
|
+
border: 1px solid #dddddd;
|
|
55
54
|
border-bottom-color: transparent;
|
|
55
|
+
color: #666666;
|
|
56
|
+
cursor: default;
|
|
56
57
|
font-weight: bold;
|
|
57
|
-
background-color: #fafafa;
|
|
58
|
-
/*border-top: 4px solid #00617F;*/
|
|
59
58
|
}
|
|
60
|
-
.vui-tabmenu
|
|
61
|
-
display: block;
|
|
59
|
+
.vui-tabmenu > .vui-tabmenu-item > a > .vui-tabmenu-item-blue {
|
|
62
60
|
background-color: #bababa;
|
|
61
|
+
display: block;
|
|
63
62
|
height: 16px;
|
|
64
|
-
width: 1px;
|
|
65
63
|
position: absolute;
|
|
66
64
|
right: -3px;
|
|
67
65
|
top: 10px;
|
|
66
|
+
width: 1px;
|
|
68
67
|
}
|
|
69
|
-
.vui-tabmenu
|
|
70
|
-
.vui-tabmenu
|
|
68
|
+
.vui-tabmenu > .vui-tabmenu-item-select-prev > a > .vui-tabmenu-item-blue,
|
|
69
|
+
.vui-tabmenu > .vui-tabmenu-item:last-child > a > .vui-tabmenu-item-blue {
|
|
71
70
|
display: none;
|
|
72
71
|
}
|
|
73
|
-
.vui-tabmenu
|
|
74
|
-
.vui-tabmenu
|
|
72
|
+
.vui-tabmenu > .vui-tabmenu-item-select:last-child > a > .vui-tabmenu-item-blue,
|
|
73
|
+
.vui-tabmenu > .vui-tabmenu-item-select > a > .vui-tabmenu-item-blue {
|
|
74
|
+
background-color: #00617f;
|
|
75
|
+
border: 1px solid #00617f;
|
|
75
76
|
display: block;
|
|
76
77
|
height: 2px;
|
|
77
|
-
|
|
78
|
+
left: -1px;
|
|
78
79
|
position: absolute;
|
|
79
80
|
top: -1px;
|
|
80
|
-
|
|
81
|
-
left: -1px;
|
|
82
|
-
border: 1px solid #00617f;
|
|
81
|
+
width: 100%;
|
|
83
82
|
}
|
|
84
|
-
[dir="rtl"] .vui-tabmenu
|
|
85
|
-
[dir="rtl"] .vui-tabmenu
|
|
83
|
+
[dir="rtl"] .vui-tabmenu > .vui-tabmenu-item-select:last-child > a > .vui-tabmenu-item-blue,
|
|
84
|
+
[dir="rtl"] .vui-tabmenu > .vui-tabmenu-item-select > a > .vui-tabmenu-item-blue {
|
|
86
85
|
right: -1px;
|
|
87
86
|
}
|
|
88
87
|
.d2l-textblock {
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
margin-bottom: 0;
|
|
89
|
+
word-wrap: break-word;
|
|
91
90
|
}
|
|
92
91
|
.d2l-hidden {
|
|
93
|
-
|
|
92
|
+
display: none !important;
|
|
94
93
|
}
|
|
95
94
|
</style>
|
|
96
95
|
</head>
|
|
@@ -149,7 +148,7 @@
|
|
|
149
148
|
|
|
150
149
|
<div class="content">
|
|
151
150
|
<p>I love Tea!</p>
|
|
152
|
-
<div style="
|
|
151
|
+
<div style="height: 300px; width: 100px;"></div>
|
|
153
152
|
</div>
|
|
154
153
|
<d2l-floating-buttons id="wc-buttons-tea">
|
|
155
154
|
<d2l-button primary id="btn-make-more-tea">Brew more Tea!</d2l-button>
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
text-align: center;
|
|
31
31
|
}
|
|
32
32
|
.badge > img {
|
|
33
|
-
object-fit: cover;
|
|
34
|
-
object-position: center;
|
|
35
|
-
height: 70px;
|
|
36
33
|
background-color: white;
|
|
37
|
-
border-radius: 6px;
|
|
38
34
|
border: 1px solid #494c4e;
|
|
35
|
+
border-radius: 6px;
|
|
36
|
+
height: 70px;
|
|
37
|
+
object-fit: cover;
|
|
38
|
+
object-position: center;
|
|
39
39
|
}
|
|
40
40
|
.badge-status {
|
|
41
41
|
background-color: white;
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
<template>
|
|
62
62
|
<div class="subtle-demo">
|
|
63
63
|
|
|
64
|
-
<d2l-card subtle align-center text="Image Badge" href="https://en.wikipedia.org/wiki/Hydrology" style="
|
|
64
|
+
<d2l-card subtle align-center text="Image Badge" href="https://en.wikipedia.org/wiki/Hydrology" style="height: 280px; width: 245px;">
|
|
65
65
|
<img slot="header" alt="" style="display: block; width: 100%;" src="https://s.brightspace.com/course-images/images/38e839b1-37fa-470c-8830-b189ce4ae134/tile-high-density-max-size.jpg">
|
|
66
66
|
<div slot="badge" class="badge">
|
|
67
67
|
<img alt="" src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/94/Stick_Figure.svg/340px-Stick_Figure.svg.png">
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
<div slot="content">Image Badge</div>
|
|
70
70
|
</d2l-card>
|
|
71
71
|
|
|
72
|
-
<d2l-card subtle align-center text="Status Badge" href="https://en.wikipedia.org/wiki/Hydrology" style="
|
|
72
|
+
<d2l-card subtle align-center text="Status Badge" href="https://en.wikipedia.org/wiki/Hydrology" style="height: 280px; width: 245px;">
|
|
73
73
|
<img slot="header" alt="" style="display: block; width: 100%;" src="https://s.brightspace.com/course-images/images/38e839b1-37fa-470c-8830-b189ce4ae134/tile-high-density-max-size.jpg">
|
|
74
74
|
<div class="badge-status" slot="badge">
|
|
75
75
|
<d2l-status-indicator text="Success" state="success"></d2l-status-indicator>
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
<div slot="content">Status Badge</div>
|
|
78
78
|
</d2l-card>
|
|
79
79
|
|
|
80
|
-
<d2l-card subtle align-center text="No Link" style="
|
|
80
|
+
<d2l-card subtle align-center text="No Link" style="height: 280px; width: 245px;">
|
|
81
81
|
<img slot="header" alt="" style="display: block; width: 100%;" src="https://s.brightspace.com/course-images/images/38e839b1-37fa-470c-8830-b189ce4ae134/tile-high-density-max-size.jpg">
|
|
82
82
|
<div slot="content">No Link</div>
|
|
83
83
|
</d2l-card>
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
<template>
|
|
93
93
|
<div class="subtle-demo">
|
|
94
94
|
|
|
95
|
-
<d2l-card subtle align-center text="Hydrology" href="https://en.wikipedia.org/wiki/Hydrology" style="
|
|
95
|
+
<d2l-card subtle align-center text="Hydrology" href="https://en.wikipedia.org/wiki/Hydrology" style="height: 300px; width: 245px;">
|
|
96
96
|
<img slot="header" alt="" style="display: block; width: 100%;" src="https://s.brightspace.com/course-images/images/38e839b1-37fa-470c-8830-b189ce4ae134/tile-high-density-max-size.jpg">
|
|
97
97
|
<d2l-dropdown-more slot="actions" translucent visible-on-ancestor text="Open!">
|
|
98
98
|
<d2l-dropdown-content>
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
</div>
|
|
120
120
|
</d2l-card>
|
|
121
121
|
|
|
122
|
-
<d2l-card subtle align-center text="Grade 2" href="https://en.wikipedia.org/wiki/Second_grade" style="
|
|
122
|
+
<d2l-card subtle align-center text="Grade 2" href="https://en.wikipedia.org/wiki/Second_grade" style="height: 300px; width: 245px;">
|
|
123
123
|
<img slot="header" alt="" style="display: block; width: 100%;" src="https://s.brightspace.com/course-images/images/e5fd575a-bc14-4a80-89e1-46f349a76178/tile-low-density-max-size.jpg">
|
|
124
124
|
<d2l-dropdown-more slot="actions" translucent visible-on-ancestor text="Open!">
|
|
125
125
|
<d2l-dropdown-content><div>This is where you could put the super cool features for your card!</div><br><div>As with all dropdowns, you can choose between a generic dropdown container, or a menu specific one.</div></d2l-dropdown-content>
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
</div>
|
|
140
140
|
</d2l-card>
|
|
141
141
|
|
|
142
|
-
<d2l-card subtle align-center text="Painting" href="https://en.wikipedia.org/wiki/Painting" style="
|
|
142
|
+
<d2l-card subtle align-center text="Painting" href="https://en.wikipedia.org/wiki/Painting" style="height: 300px; width: 245px;">
|
|
143
143
|
<img slot="header" alt="" style="display: block; width: 100%;" src="https://s.brightspace.com/course-images/images/63b162ab-b582-4bf9-8c1d-1dad04714121/tile-low-density-max-size.jpg">
|
|
144
144
|
<d2l-dropdown-more slot="actions" translucent visible-on-ancestor text="Open!">
|
|
145
145
|
<d2l-dropdown-content><div>This is where you could put the super cool features for your card!</div><br><div>As with all dropdowns, you can choose between a generic dropdown container, or a menu specific one.</div></d2l-dropdown-content>
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
<d2l-demo-snippet>
|
|
159
159
|
<template>
|
|
160
160
|
|
|
161
|
-
<d2l-card align-center text="Image Badge" href="https://en.wikipedia.org/wiki/Hydrology" style="
|
|
161
|
+
<d2l-card align-center text="Image Badge" href="https://en.wikipedia.org/wiki/Hydrology" style="height: 280px; width: 245px;">
|
|
162
162
|
<img slot="header" alt="" style="display: block; width: 100%;" src="https://s.brightspace.com/course-images/images/38e839b1-37fa-470c-8830-b189ce4ae134/tile-high-density-max-size.jpg">
|
|
163
163
|
<div slot="badge" class="badge">
|
|
164
164
|
<img alt="" src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/94/Stick_Figure.svg/340px-Stick_Figure.svg.png">
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
<div slot="content">Image Badge</div>
|
|
167
167
|
</d2l-card>
|
|
168
168
|
|
|
169
|
-
<d2l-card align-center text="Status Badge" href="https://en.wikipedia.org/wiki/Hydrology" style="
|
|
169
|
+
<d2l-card align-center text="Status Badge" href="https://en.wikipedia.org/wiki/Hydrology" style="height: 280px; width: 245px;">
|
|
170
170
|
<img slot="header" alt="" style="display: block; width: 100%;" src="https://s.brightspace.com/course-images/images/38e839b1-37fa-470c-8830-b189ce4ae134/tile-high-density-max-size.jpg">
|
|
171
171
|
<div class="badge-status" slot="badge">
|
|
172
172
|
<d2l-status-indicator text="Success" state="success"></d2l-status-indicator>
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
<div slot="content">Status Badge</div>
|
|
175
175
|
</d2l-card>
|
|
176
176
|
|
|
177
|
-
<d2l-card align-center text="No Link" style="
|
|
177
|
+
<d2l-card align-center text="No Link" style="height: 280px; width: 245px;">
|
|
178
178
|
<img slot="header" alt="" style="display: block; width: 100%;" src="https://s.brightspace.com/course-images/images/38e839b1-37fa-470c-8830-b189ce4ae134/tile-high-density-max-size.jpg">
|
|
179
179
|
<div slot="content">No Link</div>
|
|
180
180
|
</d2l-card>
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
<d2l-demo-snippet>
|
|
188
188
|
<template>
|
|
189
189
|
|
|
190
|
-
<d2l-card align-center text="Hydrology" href="https://en.wikipedia.org/wiki/Hydrology" style="
|
|
190
|
+
<d2l-card align-center text="Hydrology" href="https://en.wikipedia.org/wiki/Hydrology" style="height: 300px; width: 245px;">
|
|
191
191
|
<img slot="header" alt="" style="display: block; width: 100%;" src="https://s.brightspace.com/course-images/images/38e839b1-37fa-470c-8830-b189ce4ae134/tile-high-density-max-size.jpg">
|
|
192
192
|
<d2l-dropdown-more slot="actions" translucent visible-on-ancestor text="Open!">
|
|
193
193
|
<d2l-dropdown-content>
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
</div>
|
|
215
215
|
</d2l-card>
|
|
216
216
|
|
|
217
|
-
<d2l-card align-center text="Painting" href="https://en.wikipedia.org/wiki/Painting" style="
|
|
217
|
+
<d2l-card align-center text="Painting" href="https://en.wikipedia.org/wiki/Painting" style="height: 300px; width: 245px;">
|
|
218
218
|
<img slot="header" alt="" style="display: block; width: 100%;" src="https://s.brightspace.com/course-images/images/63b162ab-b582-4bf9-8c1d-1dad04714121/tile-low-density-max-size.jpg">
|
|
219
219
|
<d2l-dropdown-more slot="actions" translucent visible-on-ancestor text="Open!">
|
|
220
220
|
<d2l-dropdown-content><div>This is where you could put the super cool features for your card!</div><br><div>As with all dropdowns, you can choose between a generic dropdown container, or a menu specific one.</div></d2l-dropdown-content>
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
<d2l-button slot="footer" style="width: 100%;">Shiny Button</d2l-button>
|
|
225
225
|
</d2l-card>
|
|
226
226
|
|
|
227
|
-
<d2l-card align-center text="Grade 2" href="https://en.wikipedia.org/wiki/Second_grade" style="
|
|
227
|
+
<d2l-card align-center text="Grade 2" href="https://en.wikipedia.org/wiki/Second_grade" style="height: 300px; width: 245px;">
|
|
228
228
|
<img slot="header" alt="" style="display: block; width: 100%;" src="https://s.brightspace.com/course-images/images/e5fd575a-bc14-4a80-89e1-46f349a76178/tile-low-density-max-size.jpg">
|
|
229
229
|
<d2l-dropdown-more slot="actions" translucent visible-on-ancestor text="Open!">
|
|
230
230
|
<d2l-dropdown-content><div>This is where you could put the super cool features for your card!</div><br><div>As with all dropdowns, you can choose between a generic dropdown container, or a menu specific one.</div></d2l-dropdown-content>
|
|
@@ -252,8 +252,8 @@
|
|
|
252
252
|
<d2l-demo-snippet>
|
|
253
253
|
<template>
|
|
254
254
|
|
|
255
|
-
<d2l-card align-center text="Hydrology" href="https://en.wikipedia.org/wiki/Hydrology" style="
|
|
256
|
-
<d2l-card-loading-shimmer slot="header" loading style="display: block;
|
|
255
|
+
<d2l-card align-center text="Hydrology" href="https://en.wikipedia.org/wiki/Hydrology" style="height: 300px; width: 245px;">
|
|
256
|
+
<d2l-card-loading-shimmer slot="header" loading style="display: block; height: 103.5px; width: 100%;">
|
|
257
257
|
<img alt="" style="display: block; width: 100%;" src="https://s.brightspace.com/course-images/images/38e839b1-37fa-470c-8830-b189ce4ae134/tile-high-density-max-size.jpg">
|
|
258
258
|
</d2l-card-loading-shimmer>
|
|
259
259
|
<div slot="content"><div>Hydrology</div><d2l-card-content-meta>This is some extra meta data that will fill the content slot of the card.</d2l-card-content-meta></div>
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
position: relative;
|
|
17
17
|
}
|
|
18
18
|
.ancestor-container::before {
|
|
19
|
-
background-color: rgba(0,0,0,0.03);
|
|
19
|
+
background-color: rgba(0, 0, 0, 0.03);
|
|
20
20
|
box-sizing: border-box;
|
|
21
21
|
content: 'visible-on-ancestor-target';
|
|
22
22
|
font-size: 0.7rem;
|
|
23
23
|
height: 100%;
|
|
24
|
-
left:0;
|
|
24
|
+
left: 0;
|
|
25
25
|
padding: 0.5rem;
|
|
26
26
|
position: absolute;
|
|
27
27
|
text-align: right;
|
|
@@ -29,20 +29,20 @@
|
|
|
29
29
|
width: 100%;
|
|
30
30
|
}
|
|
31
31
|
.translucent-container {
|
|
32
|
-
position: relative;
|
|
33
32
|
height: 150px;
|
|
33
|
+
position: relative;
|
|
34
34
|
}
|
|
35
35
|
.translucent-container > img {
|
|
36
36
|
border-radius: 6px;
|
|
37
37
|
height: 100%;
|
|
38
|
-
position: absolute;
|
|
39
38
|
max-width: 400px;
|
|
39
|
+
position: absolute;
|
|
40
40
|
width: 100%;
|
|
41
41
|
}
|
|
42
42
|
.translucent-container > d2l-dropdown-context-menu {
|
|
43
|
-
padding-right: 0;
|
|
44
|
-
margin-top: 12px;
|
|
45
43
|
margin-left: 12px;
|
|
44
|
+
margin-top: 12px;
|
|
45
|
+
padding-right: 0;
|
|
46
46
|
}
|
|
47
47
|
</style>
|
|
48
48
|
</head>
|
|
@@ -126,4 +126,4 @@
|
|
|
126
126
|
|
|
127
127
|
</body>
|
|
128
128
|
|
|
129
|
-
</html>
|
|
129
|
+
</html>
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
<d2l-dropdown>
|
|
104
104
|
<button class="d2l-dropdown-opener">Open it!</button>
|
|
105
105
|
<d2l-dropdown-menu id="dropdown" no-padding-footer>
|
|
106
|
-
<div slot="header" style="font-weight: bold;
|
|
106
|
+
<div slot="header" style="font-weight: bold; text-align: center; width: 100%;">Physics Topics</div>
|
|
107
107
|
<d2l-menu label="Physics Topics">
|
|
108
108
|
<d2l-menu-item text="Introduction"></d2l-menu-item>
|
|
109
109
|
<d2l-menu-item text="Matter"></d2l-menu-item>
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
<d2l-menu-item text="Gravity"></d2l-menu-item>
|
|
123
123
|
<d2l-menu-item text="Magnetism"></d2l-menu-item>
|
|
124
124
|
</d2l-menu>
|
|
125
|
-
<div slot="footer" style="font-size: 0.75rem;
|
|
125
|
+
<div slot="footer" style="font-size: 0.75rem; text-align: center; width: 100%;">And <a href="#">More</a>!</div>
|
|
126
126
|
</d2l-dropdown-menu>
|
|
127
127
|
</d2l-dropdown>
|
|
128
128
|
</template>
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
<d2l-dropdown>
|
|
135
135
|
<button class="d2l-dropdown-opener">Open it!</button>
|
|
136
136
|
<d2l-dropdown-menu id="dropdown" no-padding-footer mobile-tray="right" max-height="300">
|
|
137
|
-
<div slot="header" style="font-weight: bold;
|
|
137
|
+
<div slot="header" style="font-weight: bold; text-align: center; width: 100%;">Physics Topics</div>
|
|
138
138
|
<d2l-menu label="Physics Topics">
|
|
139
139
|
<d2l-menu-item text="Introduction"></d2l-menu-item>
|
|
140
140
|
<d2l-menu-item text="Matter"></d2l-menu-item>
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
<d2l-menu-item text="Gravity"></d2l-menu-item>
|
|
154
154
|
<d2l-menu-item text="Magnetism"></d2l-menu-item>
|
|
155
155
|
</d2l-menu>
|
|
156
|
-
<div slot="footer" style="font-size: 0.75rem;
|
|
156
|
+
<div slot="footer" style="font-size: 0.75rem; text-align: center; width: 100%;">And <a href="#">More</a>!</div>
|
|
157
157
|
</d2l-dropdown-menu>
|
|
158
158
|
</d2l-dropdown>
|
|
159
159
|
</template>
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
<d2l-dropdown>
|
|
166
166
|
<button class="d2l-dropdown-opener">Open it!</button>
|
|
167
167
|
<d2l-dropdown-menu id="dropdown" no-padding-footer>
|
|
168
|
-
<div slot="header" style="font-weight: bold;
|
|
168
|
+
<div slot="header" style="font-weight: bold; text-align: center; width: 100%;">Study Guide</div>
|
|
169
169
|
<d2l-menu label="Study Guide">
|
|
170
170
|
<d2l-menu-item-radio text="Introduction" value=0></d2l-menu-item-radio>
|
|
171
171
|
<d2l-menu-item-radio text="Chapter 1" value=1></d2l-menu-item-radio>
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
<d2l-dropdown>
|
|
191
191
|
<button class="d2l-dropdown-opener">Open it!</button>
|
|
192
192
|
<d2l-dropdown-menu no-padding-footer>
|
|
193
|
-
<div slot="header" style="font-weight: bold;
|
|
193
|
+
<div slot="header" style="font-weight: bold; text-align: center; width: 100%;">Helpful Links</div>
|
|
194
194
|
<d2l-menu label="Helpful Links">
|
|
195
195
|
<d2l-menu-item-link text="menu.js (View)" href="../../menu/menu.js"></d2l-menu-item-link>
|
|
196
196
|
<d2l-menu-item-link text="menu.js (Download)" href="../../menu/menu.js" target="_blank" download></d2l-menu-item-link>
|
|
@@ -33,22 +33,22 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.translucent-container {
|
|
36
|
-
position: relative;
|
|
37
36
|
height: 150px;
|
|
37
|
+
position: relative;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.translucent-container > img {
|
|
41
41
|
border-radius: 6px;
|
|
42
42
|
height: 100%;
|
|
43
|
-
position: absolute;
|
|
44
43
|
max-width: 400px;
|
|
44
|
+
position: absolute;
|
|
45
45
|
width: 100%;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.translucent-container > d2l-dropdown-more {
|
|
49
|
-
padding-right: 0;
|
|
50
|
-
margin-top: 12px;
|
|
51
49
|
margin-left: 12px;
|
|
50
|
+
margin-top: 12px;
|
|
51
|
+
padding-right: 0;
|
|
52
52
|
}
|
|
53
53
|
</style>
|
|
54
54
|
</head>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<h2>Checkbox with multi-line label</h2>
|
|
25
25
|
<d2l-demo-snippet>
|
|
26
26
|
<template>
|
|
27
|
-
<d2l-input-checkbox style="width:200px;">
|
|
27
|
+
<d2l-input-checkbox style="width: 200px;">
|
|
28
28
|
Label for checkbox that wraps nicely onto
|
|
29
29
|
multiple lines and stays aligned
|
|
30
30
|
</d2l-input-checkbox>
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
<d2l-demo-snippet>
|
|
50
50
|
<template>
|
|
51
51
|
<d2l-input-checkbox>Label for checkbox</d2l-input-checkbox>
|
|
52
|
-
<d2l-input-checkbox-spacer style="color
|
|
52
|
+
<d2l-input-checkbox-spacer style="color: #999999;">
|
|
53
53
|
Additional content can go here and will<br>
|
|
54
54
|
also line up nicely with the checkbox.
|
|
55
55
|
</d2l-input-checkbox-spacer>
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<d2l-demo-snippet>
|
|
31
31
|
<template>
|
|
32
32
|
<d2l-test-input-radio-label></d2l-test-input-radio-label>
|
|
33
|
-
<d2l-input-radio-spacer style="color
|
|
33
|
+
<d2l-input-radio-spacer style="color: #999999;">
|
|
34
34
|
Additional content can go here and will<br>
|
|
35
35
|
also line up nicely with the radios.
|
|
36
36
|
</d2l-input-radio-spacer>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<h2>Checkbox Menu</h2>
|
|
18
18
|
<d2l-demo-snippet>
|
|
19
19
|
<template>
|
|
20
|
-
<d2l-menu label="Checkbox Menu" style="max-width:400px;">
|
|
20
|
+
<d2l-menu label="Checkbox Menu" style="max-width: 400px;">
|
|
21
21
|
<d2l-menu-item-checkbox text="Checkbox 1 with a very long title that will be cut off" value="1"></d2l-menu-item-checkbox>
|
|
22
22
|
<d2l-menu-item-checkbox text="Checkbox 2" value="2"></d2l-menu-item-checkbox>
|
|
23
23
|
<d2l-menu-item-checkbox text="Checkbox 3" value="3"></d2l-menu-item-checkbox>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<h2>Supporting Slot</h2>
|
|
35
35
|
<d2l-demo-snippet>
|
|
36
36
|
<template>
|
|
37
|
-
<d2l-menu label="Checkbox Menu" style="max-width:400px;">
|
|
37
|
+
<d2l-menu label="Checkbox Menu" style="max-width: 400px;">
|
|
38
38
|
<d2l-menu-item-checkbox text="Checkbox 1" value="1">
|
|
39
39
|
<div slot="supporting">1 point</div>
|
|
40
40
|
</d2l-menu-item-checkbox>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
<d2l-demo-snippet>
|
|
24
24
|
<template>
|
|
25
|
-
<d2l-menu label="Astronomy" style="max-width:400px;">
|
|
25
|
+
<d2l-menu label="Astronomy" style="max-width: 400px;">
|
|
26
26
|
<d2l-menu-item text="Introduction"></d2l-menu-item>
|
|
27
27
|
<d2l-menu-item-separator></d2l-menu-item-separator>
|
|
28
28
|
<d2l-menu-item text="Searching the Heavens"></d2l-menu-item>
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
<h2>Custom View</h2>
|
|
38
38
|
<d2l-demo-snippet>
|
|
39
39
|
<template>
|
|
40
|
-
<d2l-menu label="Astronomy" style="max-width:400px;">
|
|
40
|
+
<d2l-menu label="Astronomy" style="max-width: 400px;">
|
|
41
41
|
<d2l-menu-item text="Introduction"></d2l-menu-item>
|
|
42
42
|
<d2l-menu-item text="Searching the Heavens">
|
|
43
43
|
<d2l-custom-view>Searching the Heavens</d2l-custom-view>
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
|
|
55
55
|
<d2l-demo-snippet>
|
|
56
56
|
<template>
|
|
57
|
-
<d2l-menu label="Astronomy" style="max-width:400px;">
|
|
57
|
+
<d2l-menu label="Astronomy" style="max-width: 400px;">
|
|
58
58
|
<d2l-menu-item text="Introduction"></d2l-menu-item>
|
|
59
59
|
<d2l-menu-item-separator></d2l-menu-item-separator>
|
|
60
60
|
<d2l-menu-item text="Searching the Heavens"></d2l-menu-item>
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
|
|
129
129
|
<d2l-demo-snippet>
|
|
130
130
|
<template>
|
|
131
|
-
<d2l-menu label="The Solar System" style="max-width:400px;">
|
|
131
|
+
<d2l-menu label="The Solar System" style="max-width: 400px;">
|
|
132
132
|
<d2l-menu-item text="Mercury">
|
|
133
133
|
<span slot="supporting">0.39 AU</span>
|
|
134
134
|
</d2l-menu-item>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<h2>Radio Menu</h2>
|
|
18
18
|
<d2l-demo-snippet>
|
|
19
19
|
<template>
|
|
20
|
-
<d2l-menu id="menu" label="Radio Menu" style="max-width:400px;">
|
|
20
|
+
<d2l-menu id="menu" label="Radio Menu" style="max-width: 400px;">
|
|
21
21
|
<d2l-menu-item-radio text="Radio Option 1 with a very long title that will be cut off" value="1"></d2l-menu-item-radio>
|
|
22
22
|
<d2l-menu-item-radio text="Radio Option 2" value="2"></d2l-menu-item-radio>
|
|
23
23
|
<d2l-menu-item-radio text="Radio Option 3" value="3"></d2l-menu-item-radio>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<h2>Supporting Slot</h2>
|
|
35
35
|
<d2l-demo-snippet>
|
|
36
36
|
<template>
|
|
37
|
-
<d2l-menu id="menu" label="Radio Menu" style="max-width:400px;">
|
|
37
|
+
<d2l-menu id="menu" label="Radio Menu" style="max-width: 400px;">
|
|
38
38
|
<d2l-menu-item-radio text="Radio Option 1" value="1">
|
|
39
39
|
<div slot="supporting">1 point</div>
|
|
40
40
|
</d2l-menu-item-radio>
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
|
|
20
20
|
<d2l-demo-snippet>
|
|
21
21
|
<template>
|
|
22
|
-
<d2l-meter-linear value="2" max="15" style="width: 250px" text="Activities" text-inline></d2l-meter-linear>
|
|
23
|
-
<d2l-meter-linear value="3" max="6" style="width: 200px" text="Visited: {x/y}" percent></d2l-meter-linear>
|
|
22
|
+
<d2l-meter-linear value="2" max="15" style="width: 250px;" text="Activities" text-inline></d2l-meter-linear>
|
|
23
|
+
<d2l-meter-linear value="3" max="6" style="width: 200px;" text="Visited: {x/y}" percent></d2l-meter-linear>
|
|
24
24
|
<div style="background-color: darkblue;">
|
|
25
|
-
<d2l-meter-linear value="2" max="15" style="width: 250px" text="Activities" text-inline foreground-light></d2l-meter-linear>
|
|
26
|
-
<d2l-meter-linear value="3" max="6" style="width: 200px" text="Visited: {x/y}" percent foreground-light></d2l-meter-linear>
|
|
25
|
+
<d2l-meter-linear value="2" max="15" style="width: 250px;" text="Activities" text-inline foreground-light></d2l-meter-linear>
|
|
26
|
+
<d2l-meter-linear value="3" max="6" style="width: 200px;" text="Visited: {x/y}" percent foreground-light></d2l-meter-linear>
|
|
27
27
|
</div>
|
|
28
28
|
</template>
|
|
29
29
|
</d2l-demo-snippet>
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
<d2l-meter-radial value="5" max="13"></d2l-meter-radial>
|
|
36
36
|
<d2l-meter-radial value="10" max="10"></d2l-meter-radial>
|
|
37
37
|
<d2l-meter-radial value="0" max="10"></d2l-meter-radial>
|
|
38
|
-
<d2l-meter-radial value="19" max="26" style="width:25
|
|
38
|
+
<d2l-meter-radial value="19" max="26" style="width: 25%;"></d2l-meter-radial>
|
|
39
39
|
<d2l-meter-radial value="5" max="10" text="Completed"></d2l-meter-radial>
|
|
40
40
|
<div style="background-color: darkgreen;">
|
|
41
41
|
<d2l-meter-radial value="5" max="13" foreground-light></d2l-meter-radial>
|
|
42
42
|
<d2l-meter-radial value="10" max="10" foreground-light></d2l-meter-radial>
|
|
43
43
|
<d2l-meter-radial value="0" max="10" foreground-light></d2l-meter-radial>
|
|
44
|
-
<d2l-meter-radial value="19" max="26" style="width:25
|
|
44
|
+
<d2l-meter-radial value="19" max="26" style="width: 25%;" foreground-light></d2l-meter-radial>
|
|
45
45
|
<d2l-meter-radial value="5" max="10" text="Completed" foreground-light></d2l-meter-radial>
|
|
46
46
|
</div>
|
|
47
47
|
</template>
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
<d2l-meter-circle value="1" max="13"></d2l-meter-circle>
|
|
55
55
|
<d2l-meter-circle value="10" max="10"></d2l-meter-circle>
|
|
56
56
|
<d2l-meter-circle value="0" max="10"></d2l-meter-circle>
|
|
57
|
-
<d2l-meter-circle value="19" max="26" style="width:25
|
|
57
|
+
<d2l-meter-circle value="19" max="26" style="width: 25%;"></d2l-meter-circle>
|
|
58
58
|
<div style="background-color: darkred;">
|
|
59
59
|
<d2l-meter-circle value="1" max="13" foreground-light></d2l-meter-circle>
|
|
60
60
|
<d2l-meter-circle value="10" max="10" foreground-light></d2l-meter-circle>
|
|
61
61
|
<d2l-meter-circle value="0" max="10" foreground-light></d2l-meter-circle>
|
|
62
|
-
<d2l-meter-circle value="19" max="26" style="width:25
|
|
62
|
+
<d2l-meter-circle value="19" max="26" style="width: 25%;" foreground-light></d2l-meter-circle>
|
|
63
63
|
</div>
|
|
64
64
|
</template>
|
|
65
65
|
</d2l-demo-snippet>
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
Pick Your Toppings
|
|
100
100
|
<div class="d2l-selection-header">
|
|
101
101
|
<d2l-selection-select-all selection-for="collection-1"></d2l-selection-select-all>
|
|
102
|
-
<d2l-selection-action selection-for="collection-1" text="Add Note" icon="tier1:add-message" style="padding: 0 0.5rem;
|
|
102
|
+
<d2l-selection-action selection-for="collection-1" text="Add Note" icon="tier1:add-message" style="flex: 1; padding: 0 0.5rem;"></d2l-selection-action>
|
|
103
103
|
<d2l-selection-summary selection-for="collection-1"></d2l-selection-summary>
|
|
104
104
|
</div>
|
|
105
105
|
<d2l-demo-selection id="collection-1">
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
<d2l-status-indicator state="success" text="complete"></d2l-status-indicator>
|
|
41
41
|
</template>
|
|
42
42
|
</d2l-demo-snippet>
|
|
43
|
-
|
|
43
|
+
|
|
44
44
|
<h2>Alert</h2>
|
|
45
45
|
<d2l-demo-snippet>
|
|
46
46
|
<template>
|
|
47
47
|
<d2l-status-indicator state="alert" text="overdue"></d2l-status-indicator>
|
|
48
48
|
</template>
|
|
49
49
|
</d2l-demo-snippet>
|
|
50
|
-
|
|
50
|
+
|
|
51
51
|
<h2>None</h2>
|
|
52
52
|
<d2l-demo-snippet>
|
|
53
53
|
<template>
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
<d2l-demo-snippet>
|
|
88
88
|
<template>
|
|
89
89
|
<d2l-status-indicator state="alert" text="overdue"></d2l-status-indicator>
|
|
90
|
-
<span class="align-item" style="margin-left:10px;">Grade 6 Science</span>
|
|
90
|
+
<span class="align-item" style="margin-left: 10px;">Grade 6 Science</span>
|
|
91
91
|
<span class="align-item bullet">Assignment</span>
|
|
92
92
|
</template>
|
|
93
93
|
</d2l-demo-snippet>
|
|
@@ -96,4 +96,4 @@
|
|
|
96
96
|
|
|
97
97
|
</body>
|
|
98
98
|
|
|
99
|
-
</html>
|
|
99
|
+
</html>
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
</script>
|
|
15
15
|
<style>
|
|
16
16
|
.boundary {
|
|
17
|
-
position: relative;
|
|
18
17
|
background-color: var(--d2l-color-citrine);
|
|
19
18
|
box-sizing: border-box;
|
|
20
19
|
display: inline-block;
|
|
20
|
+
height: 175px;
|
|
21
21
|
padding-left: 150px;
|
|
22
22
|
padding-top: 60px;
|
|
23
|
+
position: relative;
|
|
23
24
|
width: 350px;
|
|
24
|
-
height: 175px;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.bounded {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "1.207.
|
|
3
|
+
"version": "1.207.3",
|
|
4
4
|
"description": "A collection of accessible, free, open-source web components for building Brightspace applications",
|
|
5
5
|
"repository": "https://github.com/BrightspaceUI/core.git",
|
|
6
6
|
"publishConfig": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"lint": "npm run lint:eslint && npm run lint:style && npm run lint:lit",
|
|
15
15
|
"lint:eslint": "eslint . --ext .js,.html",
|
|
16
16
|
"lint:lit": "lit-analyzer \"{components,directives,helpers,mixins,templates,test,tools}/**/*.js\" --strict",
|
|
17
|
-
"lint:style": "stylelint \"**/*.js\"",
|
|
17
|
+
"lint:style": "stylelint \"**/*.{js,html}\"",
|
|
18
18
|
"start": "web-dev-server --node-resolve --watch --open",
|
|
19
19
|
"test": "npm run lint && npm run test:headless && npm run test:axe",
|
|
20
20
|
"test:axe": "web-test-runner --group aXe",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"license": "Apache-2.0",
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@babel/eslint-parser": "^7",
|
|
45
|
-
"@brightspace-ui/stylelint-config": "^0.
|
|
45
|
+
"@brightspace-ui/stylelint-config": "^0.3",
|
|
46
46
|
"@open-wc/testing": "^2",
|
|
47
47
|
"@web/dev-server": "^0.1",
|
|
48
48
|
"@web/test-runner": "^0.13",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"lit-analyzer": "^1",
|
|
59
59
|
"node-sass": "^6",
|
|
60
60
|
"sinon": "^12",
|
|
61
|
-
"stylelint": "^
|
|
61
|
+
"stylelint": "^14"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@brightspace-ui/intl": "^3",
|