-
Notifications
You must be signed in to change notification settings - Fork 1
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
Added class option for labels to appear above their field #96
Conversation
Added class option to display labels above the form fields
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like it should be tagged as minor
instead of patch
since it adds new functionality.
I had some issues with vite not showing the updates after a npm update/build/copy
It could be that you have to run the yarn container first, if you have the vite container running.
docs/en/form.md
Outdated
@@ -100,3 +100,6 @@ $component-form-text-with-button-properties: ( | |||
## Form Process Animation | |||
When a form is submitted all fields are disabled including the submit button. An animated icon is added next to the submit button as well. | |||
You must opt-in for this to take effect, the form element must contain the following class: `fw-form-process-event` as well as the `fw-form` class. | |||
|
|||
## Label placements | |||
By default, labels are placed inside the input box. To change this, simply add the `fw-form-label-above` class alongside the `fw-form class`. This adjustment moves labels above the fields, eliminating any animation when a field gains or loses focus. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The backtick on the fw-form includes "class", so it appears as "fw-form class
" instead of "fw-form
class".
transform: none; | ||
} | ||
} | ||
textarea{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be an input
selector.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
https://werkbotstudios.teamwork.com/app/tasks/36275863
Summary
Testing Steps
fw-form-label-above
class to forms (UserFormExtension in xmc)Issues/Concerns
Git Flow