Open risalfajar opened 2 years ago
for temporary fix add to main scss file
:global(.mdc-text-field.mdc-text-field--outlined i ) {
padding: 12px;
align-self: center;
}
this will set the icons in the center vertically
also, the trailing icon doesn't have the class mdc-text-field__icon--trailing so the trailing is by the end of the text-field box
Describe the bug When using leading or trailing icon with outlined textfield, the icon is misplaced (see image)
To Reproduce Code:
Expected behavior Icon should be placed in the center like in the docs
Screenshots![image](https://user-images.githubusercontent.com/28381124/142735251-b2f73cb5-2097-4250-ae57-81ba1040c113.png)
Desktop (please complete the following information):
Current workaround Using Material Design Bootstrap CSS, I'm able to fix this by adding padding and align classes to the
Icon
: