Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
c7cadc3
commit e3413ba
Showing
10 changed files
with
54 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters