@parallelogram-js/dashboard 0.1.3 → 0.1.5
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/CHANGELOG.md +27 -1
- package/dist/parallelogram-dashboard.css +17 -4
- package/dist/parallelogram-dashboard.css.map +1 -1
- package/dist/parallelogram-dashboard.min.css +1 -1
- package/package.json +1 -1
- package/scss/components/_actionbar.scss +11 -2
- package/scss/components/_form-layout.scss +7 -1
- package/scss/components/_pageheader.scss +7 -2
- package/src/js/behaviours/overflow-actions.js +1 -1
package/package.json
CHANGED
|
@@ -252,15 +252,23 @@
|
|
|
252
252
|
padding: 0;
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
-
// Grows to fill the bar; once it would drop below its minimum, segments fold into "more"
|
|
255
|
+
// Grows to fill the bar; once it would drop below its minimum, segments fold into "more". Its
|
|
256
|
+
// label, detail and badges sit on one baseline, whatever their size, and the line sits in the
|
|
257
|
+
// middle of the bar. The label and detail grow from nothing up to their own width, so nothing
|
|
258
|
+
// they say pushes the line to wrap: they truncate instead, the label last.
|
|
256
259
|
&__title {
|
|
257
260
|
flex: 1 1 auto;
|
|
261
|
+
flex-wrap: wrap;
|
|
262
|
+
align-content: center;
|
|
263
|
+
align-items: baseline;
|
|
258
264
|
min-width: 10rem;
|
|
259
265
|
gap: $spacing-xs;
|
|
260
266
|
}
|
|
261
267
|
|
|
262
268
|
&__label {
|
|
269
|
+
flex: 4 1 0;
|
|
263
270
|
min-width: 0;
|
|
271
|
+
max-width: max-content;
|
|
264
272
|
font-weight: $font-weight-medium;
|
|
265
273
|
color: inherit;
|
|
266
274
|
text-decoration: none;
|
|
@@ -274,8 +282,9 @@
|
|
|
274
282
|
|
|
275
283
|
// Gives way before the label does
|
|
276
284
|
&__meta {
|
|
277
|
-
flex
|
|
285
|
+
flex: 1 1 0;
|
|
278
286
|
min-width: 0;
|
|
287
|
+
max-width: max-content;
|
|
279
288
|
font-size: $font-size-xs;
|
|
280
289
|
color: var(--fg-muted);
|
|
281
290
|
@include text-truncate;
|
|
@@ -123,10 +123,15 @@
|
|
|
123
123
|
// Field (label, control(s), description, error and any extra markup)
|
|
124
124
|
// --------------------------------------------------------------------------
|
|
125
125
|
|
|
126
|
+
// Help text and errors sit 6px under the control; the label (or the row holding it) keeps 8px
|
|
126
127
|
&__field {
|
|
127
128
|
display: flex;
|
|
128
129
|
flex-direction: column;
|
|
129
|
-
gap:
|
|
130
|
+
gap: 0.375rem;
|
|
131
|
+
|
|
132
|
+
> :first-child {
|
|
133
|
+
margin-bottom: 0.125rem;
|
|
134
|
+
}
|
|
130
135
|
|
|
131
136
|
// Deprecated: set aria-invalid="true" on the control instead
|
|
132
137
|
&--error {
|
|
@@ -164,6 +169,7 @@
|
|
|
164
169
|
|
|
165
170
|
&__description {
|
|
166
171
|
font-size: $font-size-xs;
|
|
172
|
+
line-height: 1.25;
|
|
167
173
|
color: var(--fg-muted);
|
|
168
174
|
}
|
|
169
175
|
|
|
@@ -72,11 +72,16 @@
|
|
|
72
72
|
z-index: $z-sticky - 1;
|
|
73
73
|
margin-top: -$spacing-lg;
|
|
74
74
|
margin-inline: -$spacing-lg;
|
|
75
|
-
padding: $spacing-
|
|
75
|
+
padding: $spacing-sm $spacing-lg;
|
|
76
76
|
background-color: var(--bg);
|
|
77
77
|
|
|
78
|
+
// Longhands, not the animation shorthand: a minifier can sort the shorthand after
|
|
79
|
+
// animation-timeline, which resets the timeline to auto and shows the shadow at the top
|
|
78
80
|
@supports (animation-timeline: scroll()) {
|
|
79
|
-
animation: pageheader-pinned
|
|
81
|
+
animation-name: pageheader-pinned;
|
|
82
|
+
animation-duration: auto;
|
|
83
|
+
animation-timing-function: linear;
|
|
84
|
+
animation-fill-mode: both;
|
|
80
85
|
animation-timeline: scroll(root);
|
|
81
86
|
animation-range: 0 $spacing-lg;
|
|
82
87
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Toggle } from './toggle.js';
|
|
2
2
|
|
|
3
|
-
const ACTIONBAR_MORE_ICON = '<svg class="icon" viewBox="0 0 24 24"><path d="
|
|
3
|
+
const ACTIONBAR_MORE_ICON = '<svg class="icon" viewBox="0 0 24 24"><path d="M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/><path d="M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/><path d="M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/></svg>';
|
|
4
4
|
const OVERFLOW_RANK = { low: 1, medium: 2 };
|
|
5
5
|
let overflowMenuCount = 0;
|
|
6
6
|
|