Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
demo.typo3.org
demo.typo3.org TYPO3 Installation
Commits
243baa57
Commit
243baa57
authored
Mar 01, 2021
by
David Steeb
Browse files
[TASK] Make sure browser validation works with custom checkboxes
parent
3d4662e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/extensions/site_t3demo/Resources/Private/Scss/_form.scss
View file @
243baa57
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
&
__field
{
&
__field
{
margin-top
:
5px
;
margin-top
:
5px
;
position
:
relative
;
}
}
&
__button
{
&
__button
{
...
@@ -134,10 +135,19 @@
...
@@ -134,10 +135,19 @@
}
}
}
}
/* checkbox and radios */
/* checkbox and radios
we hide the form controls but do not remove the field with display:none; as this
breaks browser native validation for required checkbox inputs
*/
&__checkbox,
&__checkbox,
&__radio {
&__radio {
display: none;
display: block;
height: 34px;
width: 34px;
position: absolute;
left: -4px;
top: -8px;
opacity: 0;
}
}
&__label--checkbox,
&__label--checkbox,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment