fundamental
fundamental copied to clipboard
Bug: Inputs without a type are not styled
If you have an input
-element without a type
-attribute you will notice that it does not receive the proper fundamental styles.
The value text
for the type
-attribute is the default.
The missing value default is the Text state.
Thus, some HTML minifiers will transform
<input class="fd-form__control" type="text" />
into
<input class="fd-form__control" />
resulting in input element which looks not "fundamentally". :) Actually this happened to us when we tried to integrate Fundamental into our code base.
I will open an PR in 5 minutes. I am writing this issue in order to be able to ref. it from the PR and for documentation purposes.
Linking to #1248 which wants to either remove this altogether or provide some easy way to opt-in or out