Commit a49654af authored by catch's avatar catch

Issue #882666 by mgifford, andrewmacpherson, sun: Fixed Core form descriptions...

Issue #882666 by mgifford, andrewmacpherson, sun: Fixed Core form descriptions shouldn't use a label when not associated with a form.
parent 7e8d99b5
......@@ -29,7 +29,7 @@ function theme_field_multiple_value_form($variables) {
$header = array(
array(
'data' => '<label>' . t('!title !required', array('!title' => $element['#title'], '!required' => $required)) . "</label>",
'data' => '<h4 class="label">' . t('!title !required', array('!title' => $element['#title'], '!required' => $required)) . "</h4>",
'colspan' => 2,
'class' => array('field-label'),
),
......
......@@ -1284,7 +1284,7 @@ function theme_filter_guidelines($variables) {
$attributes['class'][] = 'filter-guidelines-item';
$attributes['class'][] = 'filter-guidelines-' . $format->format;
$output = '<div' . new Attribute($attributes) . '>';
$output .= '<h3>' . check_plain($format->name) . '</h3>';
$output .= '<h4 class="label">' . check_plain($format->name) . '</h4>';
$output .= theme('filter_tips', array('tips' => _filter_tips($format->format, FALSE)));
$output .= '</div>';
return $output;
......
......@@ -548,7 +548,7 @@ function theme_language_negotiation_configure_form($variables) {
foreach ($form['#language_types'] as $type) {
$rows = array();
$title = '<label>' . $form[$type]['#title'] . '</label>';
$title = '<h4 class="label">' . $form[$type]['#title'] . '</h4>';
$description = '<div class="description">' . $form[$type]['#description'] . '</div>';
foreach ($form[$type]['title'] as $id => $element) {
......
......@@ -102,6 +102,12 @@ label.option {
display: inline;
font-weight: normal;
}
h4.label {
font-size: inherit;
font-weight: bold;
margin: 0;
padding: 0;
}
.form-checkboxes .form-item,
.form-radios .form-item {
margin-top: 0.4em;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment