Repository navigation
material 3.1.0
Added
-
Sass consumers can choose which contrast rules to compile with
$contrast-emit(#95).
Configurematerial/src/styles/themesormaterial/src/styles/mainwith@use … with
before loading other material theme modules.all(the default) emits explicit medium/high
contrast attributes and the system contrast preference;explicitemits only the attribute
rules;preferenceemits only the preference rules;noneemits neither. Every mode keeps
standard light and dark roles. In the twelve-theme bundle,nonesaves 117,184 raw bytes and
8,177 gzip bytes (level 9) compared withall, by dropping both contrast activation families.
Default output and prebuilt CSS are unchanged; other Sass configuration remains unsupported. -
<m-text-field>acceptstrailing-icon-labelto name its trailing icon button (#37).
With a non-empty label, the icon is a button that dispatchestrailingfrom the host on click,
Enter or Space. The event bubbles and is composed; its detail is{ value, event }, carrying
the field's current value and the original activation event. Changing the label updates the
existing button in place and keeps the input and focus. A missing or empty label leaves the
icon decorative: anaria-hiddenspan, outside the accessibility tree.
Documentation
- Added
MIGRATING.md, verified against published 3.0.5, and linked it from both READMEs (#97).
npm: material@3.1.0 · Docs: md3.io · Full history: CHANGELOG.md
The history before 3.0.0 was developed in floor/mtrl; #numbers in commit subjects before 3.0.0 refer to pull requests there.