5.8.0
Minor Changes
- #1365
828b10bThanks @arnoldstoba! - AddMtBreadcrumbfor hierarchy navigation, rendered from anitemsarray, with sizesxsandsand automatic truncation and collapsing of crumbs on narrow containers. Collapsed crumbs stay reachable through an overflow menu.MtActionMenuItemnow also accepts a component foras. - #1187
54f20caThanks @arnoldstoba! - Remove the SCSS/Sass dependency — all styles are plain CSS. Legacy SCSS colors were replaced with design tokens and popovers/data table now inherit the global typography, which slightly changes some colors and glyphs. The shipped CSS is now minified. - #1360
cb6e680Thanks @alastair-simon! - mt-datepicker: add thehintprop and#hintslot for an optional caption below the field, matching the other form fields. A custom hint replaces the default time zone hint of datetime pickers, which now uses the same shared hint styling.
The time zone hint is now rendered bymt-field-hint, which changes its DOM. It used to bediv.mt-datepicker__hint.field-hint > (mt-icon.mt-datepicker__hint-icon, p)and is nowspan.mt-field-hint.mt-datepicker__hint.field-hint > (span.mt-field-hint__icon-wrapper > mt-icon.mt-field-hint__icon, span.mt-field-hint__text). Thedata-testid="time-zone-hint"attribute is unchanged. Custom styles that target.mt-datepicker__hint-iconor.mt-datepicker__hint pneed to be updated, and the clock icon is nowaria-hidden.
Patch Changes
- #1373
a7b15a4Thanks @fabianhueske! - Align the global font feature settings with the brand guidelines. Thebodystyles now only enabless01,cv10andcv11instead of the previouscv02,cv03,cv04,cv05,cv08,cv09andcv10set, which changes the shape of some glyphs. - #1335
8b1fbd3Thanks @fabianhueske! - Align the unit select dropdown styling with the select result list
The dropdown ofmt-unit-fieldnow uses the same edge spacing, item padding, border radius and hover color asmt-select-result-list. The unit trigger no longer shows a pointer cursor while it is disabled. The trigger chevron uses the same icon variant and size asmt-selectand the number field controls. The dropdown is capped at a maximum width and long unit labels truncate with an ellipsis. - #1360
cb6e680Thanks @alastair-simon! - mt-field-hint, mt-datepicker: keep the hint icon at its size and centered on the first line when the hint text wraps onto multiple lines. The alignment no longer depends on the--font-line-height-xstoken or the icon size. - #1356
fa3bfd2Thanks @quynhnguyen68! - Fix autofilled input fields rendering with a white background in dark mode: the:-webkit-autofilloverride hardcoded#fff, so Chrome's autofill and autofill-preview states painted the field white with unreadable light text. It now uses the themed background and text tokens, and matches the critical background when the field has an error - #1349
8072707Thanks @gweiermann! - mt-floating-ui: hide the floating content while its reference element is fully scrolled out of view, instead of letting it float over unrelated UI; consumer-suppliedfloatingUiOptions.middlewarenow extends the default middleware instead of replacing it - #1338
3fd7290Thanks @arnoldstoba! - Give consumers control over browser and password-manager autofill across form fields. All text-entry fields (mt-text-field,mt-email-field,mt-password-field,mt-url-field,mt-number-field,mt-textarea) forward a newautocompleteprop to their native input, e.g.autocomplete="new-password"orautocomplete="off".mt-selectexposes anenableSearchprop — disabling it renders a readonly search input that browsers skip — and its search input now opts out of autofill (autocomplete="off",data-1p-ignore,data-lpignore,data-bwignore), as doesmt-searchby default (overridable via the sameautocompleteprop).mt-theme-selectdisables its unneeded search input - #1347
7a7337cThanks @alastair-simon! - Remove the unused date-fns-tz dependency. Nothing in the library imports it, so it only added weight to every install. - #1361
78070efThanks @alastair-simon! - Revert the datepicker time zone hint icon sizing change from 5.7.1 (#1345). It caused a visual regression in the hint layout - #1363
dbe6577Thanks @arnoldstoba! - Stopmt-snackbarfrom stealing keyboard focus when a notification appears - Updated dependencies [
54f20ca,1f4d523]:- @shopware-ag/meteor-icon-kit@5.11.0
- @shopware-ag/meteor-admin-sdk@6.15.0