@redseed/redseed-ui-vue3 10.5.0 → 10.5.1
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
|
@@ -213,6 +213,11 @@ const titleTag = computed(() => HEADING_LEVELS.includes(String(props.headingLeve
|
|
|
213
213
|
{
|
|
214
214
|
'rsui-section-header--divider': showDivider,
|
|
215
215
|
'rsui-section-header--clickable': isClickable,
|
|
216
|
+
// Direction driven by the SAME measurement as everything else in here.
|
|
217
|
+
// It used to come from `md:` — a viewport query at 768 — while the icon
|
|
218
|
+
// gate, the actions swap and the badge stacking all read the container at
|
|
219
|
+
// 640, so a narrow column on a wide screen got both layouts at once. #420.
|
|
220
|
+
'rsui-section-header--narrow': !responsiveWidth.specific,
|
|
216
221
|
}
|
|
217
222
|
]"
|
|
218
223
|
:role="isClickable ? 'button' : undefined"
|
|
@@ -222,6 +227,27 @@ const titleTag = computed(() => HEADING_LEVELS.includes(String(props.headingLeve
|
|
|
222
227
|
>
|
|
223
228
|
<div class="rsui-section-header__header">
|
|
224
229
|
|
|
230
|
+
<!--
|
|
231
|
+
The chevron takes the LEADING position, beside the text block rather than
|
|
232
|
+
inside the title — the same spot `#icon` occupies, and the same shape
|
|
233
|
+
`CardHeader` and `PageHeader` both use for `#avatar`.
|
|
234
|
+
|
|
235
|
+
It used to sit inside `__title`, copied from the coaching index prototype,
|
|
236
|
+
which hand-rolled it into a span in the title because it had no slot to use.
|
|
237
|
+
That indented the title and left the subtitle at the header's own edge, 46px
|
|
238
|
+
adrift from the heading it belongs to — three edges where there should be two.
|
|
239
|
+
Here the whole of `__text` (title, badge, subtitle) indents past it together.
|
|
240
|
+
|
|
241
|
+
Its own element, NOT the `#icon` slot: that slot is width-gated and a control
|
|
242
|
+
must not vanish on a narrow header (#372). `__header` is already `items-start`,
|
|
243
|
+
so it lands on the title's line rather than centring against the block. #407.
|
|
244
|
+
-->
|
|
245
|
+
<div v-if="rendersTrigger()"
|
|
246
|
+
class="rsui-section-header__trigger"
|
|
247
|
+
>
|
|
248
|
+
<DisclosureTrigger sm />
|
|
249
|
+
</div>
|
|
250
|
+
|
|
225
251
|
<!-- Icon slot, optional — hidden on narrow sections -->
|
|
226
252
|
<div class="rsui-section-header__icon"
|
|
227
253
|
v-if="$slots.icon && responsiveWidth.specific"
|
|
@@ -238,23 +264,7 @@ const titleTag = computed(() => HEADING_LEVELS.includes(String(props.headingLeve
|
|
|
238
264
|
<div :class="[
|
|
239
265
|
'rsui-section-header__title',
|
|
240
266
|
{ 'rsui-section-header__title--stacked': !responsiveWidth.specific && !inlineBadge },
|
|
241
|
-
// --stacked gives the title text `basis-full`, which takes the whole row and
|
|
242
|
-
// strands the trigger on the line above it. Same class of defect CardHeader
|
|
243
|
-
// had, and it carries the same modifier name.
|
|
244
|
-
{ 'rsui-section-header__title--with-trigger': rendersTrigger() },
|
|
245
267
|
]">
|
|
246
|
-
<!--
|
|
247
|
-
First child of the TITLE row, not a sibling of the whole text block
|
|
248
|
-
the way `#icon` is: `__icon` centres against title AND subtitle
|
|
249
|
-
together, so with a subtitle present the chevron drifts off the line
|
|
250
|
-
it belongs to. `sm` matches the ACTION SIZE guidance in
|
|
251
|
-
section_header.css.
|
|
252
|
-
-->
|
|
253
|
-
<div v-if="rendersTrigger()"
|
|
254
|
-
class="rsui-section-header__trigger"
|
|
255
|
-
>
|
|
256
|
-
<DisclosureTrigger sm />
|
|
257
|
-
</div>
|
|
258
268
|
<component :is="titleTag"
|
|
259
269
|
:class="[
|
|
260
270
|
'rsui-section-header__title-text',
|