Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(form-field): Add support for space-between
This PR adds `mdc-form-field--space-between` class. fixes: material-components#5747 This allows easily creating this layout: ![image](https://user-images.githubusercontent.com/1741838/77768710-23904a80-7043-11ea-9c44-8febdc8e0430.png) https://jsfiddle.net/Misiu/quzgcsev/25/ Sample code: ``` <div class="mdc-form-field mdc-form-field--space-between" id="form1"> <div class="mdc-switch" id="switch1"> <div class="mdc-switch__track"></div> <div class="mdc-switch__thumb-underlay"> <div class="mdc-switch__thumb"></div> <input type="checkbox" id="basic-switch1" class="mdc-switch__native-control" role="switch" aria-checked="false"> </div> </div> <label for="basic-switch1">off/on</label> </div> ``` I've added support for `mdc-form-field--align-end`, but I'm not sure how support for RTL languages should look. Also, this is my first PR in this repo, so sorry for any mistakes. PiperOrigin-RevId: 304204642
- Loading branch information