You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(material-experimental/mdc-form-field): show required asterisk for disabled fields
We currently implement our own logic for the asterisk. We need to update
our conditions for showing the asterisk to match with MDC. i.e. in MDC
the required asterisk shows always, regardless of the disabled state.
This is different to the standard form-field, but we want to match this
with the MDC text-field.
Additionally, this commit cleans up our custom asterisk code as we can
now fully rely on MDC's floating label implementation for the asterisk
styles. The floating label wasn't flexible enough in the past.
Finally, this also simplifies the floating label directive for more
optimized payload size. We don't need the getters/setters and
MDC foundation/component proxy for basically toggling simple
public API classes (or measuring the label width). Foundations
and components generally contribute a lot to payload size
due to their natural concept of providing default and fallback
adapters. We'll be working on outlining these issues long-term,
but generally there should be no reason in complicating this
by using one of the these MDC components/foundations.
Related to #19410
0 commit comments