fundamental icon indicating copy to clipboard operation
fundamental copied to clipboard

Bug: Inputs without a type are not styled

Open ChristianKienle opened this issue 6 years ago • 1 comments

If you have an input-element without a type-attribute you will notice that it does not receive the proper fundamental styles.

Fiddle to reproduce the issue

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.

ChristianKienle avatar Feb 19 '19 11:02 ChristianKienle

Linking to #1248 which wants to either remove this altogether or provide some easy way to opt-in or out

MattL75 avatar Feb 26 '19 15:02 MattL75