Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

form-text missing in documentation #218

Open
klor opened this issue Jun 12, 2019 · 0 comments
Open

form-text missing in documentation #218

klor opened this issue Jun 12, 2019 · 0 comments

Comments

@klor
Copy link

klor commented Jun 12, 2019

Form documentation: https://getuikit.com/docs/form
Consider also adding it to https://getuikit.com/docs/text.

<span class="form-text"></span>

Sample code:

<form class="uk-form-horizontal" method="POST">

	<div class="uk-margin">
		<label for="inp_created_by" class="uk-form-label uk-text-bold uk-text-muted uk-text-uppercase uk-text-small">
			Created by
		</label>
		<div class="uk-form-controls">
			<input type="hidden" name="created_by" value="jd">
			<span class="form-text">John Doe</span>
		</div>
	</div>

	<div class="uk-margin">
		<div class="uk-form-controls">
			<input type="submit" name="submit" value="Save" class="uk-button uk-button-primary" />
		</div>
	</div>

</form>

Tip: The form element will collapse if you output an empty string as here: <span class="form-text"></span>, you can fix this by outputting a no-breaking space for empty strings: <span class="form-text">&nbsp;</span>

@janschoenherr janschoenherr transferred this issue from uikit/uikit Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant