Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
2d633804
Commit
2d633804
authored
Nov 28, 2019
by
Carsten Rose
Browse files
Checkbox Plain Vertical: forces 'font-weight: 400;'
parent
b35e0f55
Pipeline
#2812
passed with stages
in 2 minutes and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Classes/Core/AbstractBuildForm.php
View file @
2d633804
...
...
@@ -2243,7 +2243,8 @@ abstract class AbstractBuildForm {
$attributeBase
.
=
Support
::
doAttribute
(
'data-load'
,
(
$formElement
[
FE_DYNAMIC_UPDATE
]
===
'yes'
)
?
'data-load'
:
''
);
$attributeBase
.
=
$this
->
getAttributeList
(
$formElement
,
[
F_FE_DATA_PATTERN_ERROR
,
F_FE_DATA_REQUIRED_ERROR
,
F_FE_DATA_MATCH_ERROR
,
F_FE_DATA_ERROR
]);
$attributeBaseLabel
=
Support
::
doAttribute
(
'style'
,
'min-width: '
.
$formElement
[
F_FE_MIN_WIDTH
]
.
'px;'
);
// 'font-weight: 400;': class 'checkbox' forces bold for the label - this is not ok.
$attributeBaseLabel
=
Support
::
doAttribute
(
'style'
,
'min-width: '
.
$formElement
[
F_FE_MIN_WIDTH
]
.
'px; font-weight: 400;'
);
// $key = HelperFormElement::prependFormElementNameCheckBoxMulti($htmlFormElementName, 'h');
// $htmlHidden = $this->buildNativeHidden($key, '');
...
...
@@ -2289,9 +2290,9 @@ abstract class AbstractBuildForm {
$htmlElement
=
'<input '
.
$attribute
.
'>'
.
$value
;
// With ALIGN_HORIZONTAL: the label causes some trouble: skip it
if
((
$orientation
===
ALIGN_VERTICAL
))
{
$htmlElement
=
Support
::
wrapTag
(
'<label>'
,
$htmlElement
);
}
//
if (($orientation === ALIGN_VERTICAL)) {
//
$htmlElement = Support::wrapTag('<label>', $htmlElement);
//
}
$htmlElement
=
Support
::
wrapTag
(
"<label class='
$checkboxClass
'
$attributeBaseLabel
>"
,
$htmlElement
,
true
);
...
...
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