Comments

rjgoldsborough’s picture

StatusFileSize
new67.69 KB

On a fresh HEAD as of ~9am this looks ok to me. Browser? OS? Maybe someone else can confirm but looks good to me in FF, Chrome and IE7/8. Screenshot is FF.

dave reid’s picture

Status: Active » Closed (cannot reproduce)

I also can't duplicate this.

Danic’s picture

I just updated to HEAD version of this moment. I still have the bug as in the screenshot before :/
Dave, if you like to look into it, I create you an account on that site so you can try to reproduce.

Here some information:

Windows XP SP3
Firefox 3.6.12 & IE 8.0.6001.18702

PHP	5.2.6-1+lenny9 (weitere Informationen)
PHP Register Globals	deactivated
PHP-extensions	activated
PHP-memory_limit	48M
Unicode-lib	PHP-extension „mbstring“
Webserver	Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0
</div>
</div></div><div class="field-type-taxonomy-term-reference field-name-field-skin-aeroplane field-widget-taxonomy-autocomplete form-wrapper" id="edit-field-skin-aeroplane"><div class="form-item form-type-textfield form-item-field-skin-aeroplane-und">
  <label for="edit-field-skin-aeroplane-und">Aeroplane <span class="form-required" title="Diese Angabe wird benötigt.">*</span></label>
 <input type="text" id="edit-field-skin-aeroplane-und" name="field_skin_aeroplane[und]" value="" size="60" maxlength="128" class="form-text required form-autocomplete" /><input type="hidden" id="edit-field-skin-aeroplane-und-autocomplete" value="http://example.com/taxonomy/autocomplete/field_skin_aeroplane" disabled="disabled" class="autocomplete" />
</div>
</div>
uhkis’s picture

Status: Closed (cannot reproduce) » Active

Issue still remains. Overlay in #1 uses Seven, not bartik, right? Seven doesn't the change the font of div.field-type-taxonomy-term-reference, which seems to be the problem.

dcam’s picture

Issue summary: View changes
Issue tags: +Novice

This is still reproducible and it's a good novice issue. This is a problem with the Bartik theme, not Seven, which is what is displayed in #1. To reproduce the issue with a clean install of D7:
1. Visit admin/appearance.
2. Select Bartik as the admin theme.
3. Visit the new Article node form.
4. Verify that the Tags taxonomy field's label does not use the same font as the other fields.

The term reference field has been replaced by the entity reference field in D8, so this shouldn't be an issue in it.

justinchev’s picture

Assigned: Unassigned » justinchev
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new18.82 KB
new23.52 KB
new389 bytes

CSS class targeting the taxonomy label in Bartik admin theme has been changed so that it only targets the label for front-end theme, and not for the admin theme.

Admin view


Front-end view

dcam’s picture

Status: Needs review » Reviewed & tested by the community

Thanks, @justinchev! #6 looks ok to me. For the record, the patch also corrects the font of the field description.

damienmckenna’s picture

I double-checked the patch, just to be sure. I confirmed the problem still existed in the current 7.x branch, the patch applies cleanly, and confirmed that the patch fixed the problem.

mathus13’s picture

Confirmed issue still exists in 7.x HEAD
Proposed patch is a good fix

damienmckenna’s picture

Assigned: justinchev » Unassigned

Don't need to leave this assigned to justinchev anymore.

David_Rothstein’s picture

Status: Reviewed & tested by the community » Needs review

Isn't the intention of the current code to style the whole rendered term, though (not just the field label)?

I think in most common cases it won't matter, since e.g. the term will be rendered as a link which gets the same styling through other CSS rules. But if you're displaying the term differently, you probably want the whole thing to use the same font.

Seems like it would be safer to prevent the styling in situations where we don't want it, e.g. prevent it for .form-item .field-type-taxonomy-term-reference or something similar, rather than changing the existing rule.

dcam’s picture

Title: Wrong font for Taxonomy field in content creation. » Wrong font for Taxonomy field widget label and description in Bartik

@David_Rothstein
I'm not sure I understand, so I want to verify what I think you're suggesting. Do you believe that the current style should be left in place, then an additional rule added to correct the widget's font issue which is caused by that rule?

David_Rothstein’s picture

I guess so... although it's unideal in terms of having clean CSS. But I think that's probably the most backwards-compatible way to do it.

dcam’s picture

Status: Needs review » Needs work

Ok, then this needs work.

justinchev’s picture

Issue summary: View changes
Status: Needs work » Needs review
StatusFileSize
new24.09 KB

The code as it stands sets the font for the 'field label', the 'tags', and the 'descriptive text' that you see in edit view.

The edit page descriptive text should inherit the font that all the other descriptive texts use.
The tags themselves don't actually require this CSS style as they inherit the font anyway.

The issue is just the 'Tags' label. All the field labels have a CSS class of 'field-label' (including the tags widget). On the edit page the label should inherit whatever font is set for all other field labels. On the frontend though the label is set to use the font and is why it's has this style.

Regarding being backward compatible I don't think that we need to leave the current style and add additional rules to correct the label and descriptive text. If someone decides they want to change the base site font, or 'field-label' font, they should inherit the changes automatically.

Option 1 (patch #6) I think is the best as it leaves the frontend label with the specified font, and only the edit page label and descriptive text change.

Option 2 is also a possibility, which is to remove the rule completely for the widget. This fixes the edit page issues, but means that the frontend label will use the default & 'field-label' font styles; which isn't good for backwards compatibility.

Attached image demonstrating the options.

anavarre’s picture

Version: 7.x-dev » 8.0.x-dev
Status: Needs review » Needs work
Issue tags: +Bartik

Issues should now been moved to 8 and backported to 7. Can confirm it was on D7 and now D8.

justinchev’s picture

Assigned: Unassigned » justinchev
justinchev’s picture

Issue summary: View changes
Status: Needs work » Needs review
StatusFileSize
new30.87 KB
new507 bytes

Attached is the D8 patch for this fix - the D7 version should still be relevant I think.

The issue isn't present on the 'edit pages' for D8, but on the 'presentation' view the font-face and the font-weight are different to the other field labels. The patch fixes the font-face & font-weight difference, and makes it so the label will just inherit whatever is set for the other labels - ie. everything with class ".field .field-label {}".

Here's an image showing the problem and the fix as supplied by the patch.

Status: Needs review » Needs work

The last submitted patch, 18: D8-core-Bartik-admin-theme-tag-font-965162-18.patch, failed testing.

justinchev’s picture

Issue summary: View changes
justinchev’s picture

Status: Needs work » Needs review
StatusFileSize
new507 bytes

No idea why the previous patch failed testing. Rerolled it just in case... see previous change comments and details in #18.

Status: Needs review » Needs work

The last submitted patch, 21: D8-core-Bartik-admin-theme-tag-font-965162-21.patch, failed testing.

justinchev’s picture

Version: 8.0.x-dev » 8.1.x-dev
Status: Needs work » Needs review
StatusFileSize
new748 bytes

Have updated to use code from branch 8.1.x so this should now hopefully pass testing...

Anyway attached is the 8.1.x patch - the D7 version should still be relevant I think.

The issue isn't present on the 'edit pages' for D8, but on the 'presentation' view the font-face and the font-weight are different to the other field labels. The patch fixes the font-face & font-weight difference, and makes it so the label will just inherit whatever is set for the other labels - ie. everything with class ".field .field-label {}".

Here's an image showing the problem and the fix as supplied by the patch.

jeff cardwell’s picture

I duplicated the issue in post #23 and after applying the patch was able to reproduce the results.

kevin.dutra’s picture

Title: Wrong font for Taxonomy field widget label and description in Bartik » Wrong font for entity reference field widget labels and descriptions in Bartik
Version: 8.1.x-dev » 8.0.x-dev

Tweaking title to reflect that this affects more than just the taxonomy field. Also, is it necessary to target 8.1.x? This is a bugfix and does not seem to be a disruptive change. Based on what I'm reading in https://www.drupal.org/core/d8-allowed-changes, this is fine for 8.0.x.

kevin.dutra’s picture

Status: Needs review » Needs work
StatusFileSize
new30.91 KB

Applied the patch and looked at various fields, things are getting closer, but there are still some problems with font sizing. Attaching an image with further details. This was taken after applying the patch on a node that has a user reference field, integer list field, and taxonomy reference field. As you can see, there's some inconsistency that looks bad.

Various field labels

emma.maria’s picture

Assigned: justinchev » Unassigned
Issue tags: -Novice, -Bartik +frontend, +CSS

Unassigning and removing 'Novice' as this issue has gained some complexity.

I have spent some time understanding the font sizing issues in Bartik so I will try and give some advice here also.

finnsky’s picture

StatusFileSize
new18.59 KB

for teaser display looks also not correct

finnsky’s picture

StatusFileSize
new1.3 KB

Added font size fixes.
1) changed font-size for field--type-entity-reference label
2) added font-size for node-view-mode-teaser label
3) added font-size field--name-field-tags label

finnsky’s picture

Status: Needs work » Needs review
finnsky’s picture

StatusFileSize
new1.03 KB
kevin.dutra’s picture

StatusFileSize
new16.47 KB
new19.45 KB
new12.44 KB

Thank you for the patch @finnsky. We're still getting closer, but not quite right. The field values appear to be correct, but now the labels on the entity reference fields are a bit too large. Here is a shot of the same sort of test I did previously:

Various field labels

And here are the computed styles for the list field label:
computed style - list field

versus the entity reference field labels:
computed style - entity reference field

kevin.dutra’s picture

Status: Needs review » Needs work
prateekS’s picture

StatusFileSize
new9.03 KB

I have added new patch, so that labels on the entity reference fields have same size as field text have. Please review it.

prateekS’s picture

StatusFileSize
new1.28 KB
prateekS’s picture

Status: Needs work » Needs review
kevin.dutra’s picture

StatusFileSize
new1.37 KB
new1.37 KB

This patch makes a few adjustments to the previous one:

  1. Fixes a couple whitespace issues.
  2. Undoes margin adjustments. (Since we're focused on the font here, how about we defer margin adjustments to a follow-up, to keep things simple.)
  3. Reintroduces the font family adjustments from #29.
  4. Sizing for both field labels and field values should be consistent for both full and teaser view. The adjustments made use normal (not entity reference) fields for reference.
prateekS’s picture

I have checked above patch (mentioned in #37). font sizes looking fine. But seems some spacing needed in between tags, checked ff, chrome both and having this issue on both browser.

prateekS’s picture

Status: Needs review » Needs work
prateekS’s picture

StatusFileSize
new2.02 KB

Adding screenshot here

kevin.dutra’s picture

Status: Needs work » Needs review

Thanks for looking it over @prateekS, but this patch does not change spacing at all, just font sizing and family. I think you'll find that the problem you encountered is that you created a single tag called "tag1 tag2" rather than two tags. (Tags must be separated by a comma in the form field.)

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

emma.maria’s picture

Title: Wrong font for entity reference field widget labels and descriptions in Bartik » Wrong font for entity reference field widget labels and descriptions.
Version: 8.1.x-dev » 8.2.x-dev
Issue tags: +Needs subsystem maintainer review, +DrupalCampES

(I think this is the tag to use for needs maintainer sign off before the issue set to RTBC)
Also bumping this to 8.2.x because I think committers possibly will class this as a disruptive visual change.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

tacituseu’s picture

Seems it was intended, background on the issue: #1218640: Bartik displays all taxonomy term fields in a smaller font than other fields, (especially from #38)

joachim’s picture

The intent according to #1218640: Bartik displays all taxonomy term fields in a smaller font than other fields is that the field label for the Tags field, or possibly all taxonomy term reference fields which was meant to be smaller.

If the latter, I think it's a wrong decision. There's no way we can know how important or not taxonomy term reference fields are.

And at any rate, the CSS is getting applied to ALL entity reference fields, which is just wrong.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.