@bytebrand/fe-ui-core-autobahn 1.0.24 → 1.0.25
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 +1 -1
- package/theme/md3.css +10 -1
- package/vdp/FinanceCalculator.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bytebrand/fe-ui-core-autobahn",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"description": "auto.de md3 (Autobahn) design system — UI primitives, cards, chrome, VDP modules, theme CSS and locales. Ships raw TypeScript source (like fe-ui-core before it); each consumer's bundler compiles it.",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"license": "UNLICENSED",
|
package/theme/md3.css
CHANGED
|
@@ -1307,8 +1307,11 @@
|
|
|
1307
1307
|
.md3 .srp-grid { grid-template-columns: 1fr; }
|
|
1308
1308
|
/* stretch, not the desktop rule's align-items:start — start makes every stacked block
|
|
1309
1309
|
(incl. .vdp-aside + finance card) shrink-to-fit its max-content, which blows past the
|
|
1310
|
-
viewport as soon as any card content (e.g. the 52px rate) prefers to be wide.
|
|
1310
|
+
viewport as soon as any card content (e.g. the 52px rate) prefers to be wide. min-width:0
|
|
1311
|
+
on the aside is the backstop: stretch is floored by min-width:auto (= content min), and
|
|
1312
|
+
the nowrap CTA buttons alone min out around 400px. */
|
|
1311
1313
|
.md3 .vdp-grid { display: flex; flex-direction: column; align-items: stretch; }
|
|
1314
|
+
.md3 .vdp-aside { min-width: 0; }
|
|
1312
1315
|
.md3 .vdp-gallery { order: 1; }
|
|
1313
1316
|
/* mobile-only "first screen": identity + trust row BEFORE the finance card, highlights/
|
|
1314
1317
|
condition tiles moved AFTER it (both split out of the desktop-only VdpHeaderCard,
|
|
@@ -1502,6 +1505,12 @@
|
|
|
1502
1505
|
.md3 .fin-price-grid { grid-template-columns: minmax(0, 1fr) 112px; }
|
|
1503
1506
|
.md3 .fin-rate-main > div { flex-wrap: wrap; }
|
|
1504
1507
|
.md3 .fin-rate-main .md-body-sm { font-size: 15px !important; font-weight: 700 !important; color: var(--md-on-surface-variant) !important; }
|
|
1508
|
+
/* figma pricing-card padding is 16 (inline says 20 — hence !important); the side-by-side
|
|
1509
|
+
CTAs must be allowed to SHRINK (mbtn is nowrap min-width:auto, 0-30px padding — the pair
|
|
1510
|
+
alone mins out wider than the phone card) */
|
|
1511
|
+
.md3 .vdp-aside > .mcard { padding: 16px !important; }
|
|
1512
|
+
.md3 .fin-cta-row .mbtn { min-width: 0; padding-left: 12px; padding-right: 12px; }
|
|
1513
|
+
.md3 .fin-cta-row .mbtn--outlined { padding-left: 8px; padding-right: 8px; }
|
|
1505
1514
|
}
|
|
1506
1515
|
|
|
1507
1516
|
/* ---------- save-search bar ---------- */
|
|
@@ -481,7 +481,7 @@ const FinanceCalculator: React.FunctionComponent<FinanceCalculatorProps> = ({
|
|
|
481
481
|
<div className="show-mobile" style={{ flexDirection: 'column' }}>
|
|
482
482
|
{/* side-by-side CTAs — mockup ratio ~2:1, with the tiny auto.de-ID sitting
|
|
483
483
|
directly under the Anrufen button (not in its own full-width row). */}
|
|
484
|
-
<div style={{ display: 'flex', gap: 10, marginTop: 14, alignItems: 'flex-start' }}>
|
|
484
|
+
<div className="fin-cta-row" style={{ display: 'flex', gap: 10, marginTop: 14, alignItems: 'flex-start' }}>
|
|
485
485
|
<Button variant="filled" size="lg" icon="shield-check" style={{ flex: 2 }} onClick={onSecure}>
|
|
486
486
|
{t('autobahn:finance.secureOffer')}
|
|
487
487
|
</Button>
|