Closed (fixed)
Project:
Basic
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Aug 2016 at 17:21 UTC
Updated:
14 May 2019 at 10:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mikeker commentedAlso fixes the lack of a trailing newline in this file.
Comment #3
mikeker commentedAlways forget that... :)
Comment #4
joelpittetWhen/how does a site builder set that visually-hidden class? I don't think core has any drop-downs to that effect. If I'm building with Basic, i may want to use my own class names for these utility classes or borrowing from another framework
Comment #5
mikeker commentedIn
admin/structure/types/manage/<content_type>/displaya site builder can set display options on the field label. (Related, but out of scope for this issue, is that Basic doesn't handle the inline option either.) Classy then adds it infield.html.twig:Comment #6
joelpittetThat seems more like a core bug/oversight but yeah in basic we use that utility class in a number of places already.
Maybe we can/should add that back to stable, since we do in in preprocess all over core anyway? If people don't have the class defined, most things won't work as expected and you can't easily change that class name across core :(
If you agree could you create that issue in core?
For Basic in the mean time, we should just add that class in ours, minus the
field__labelComment #7
mikeker commentedAdded a core bug/followup: #2779919: Stable theme does not respect "visually hidden" field label display option.
Also updated Basic's field template to include the class with an @todo to remove it when the above issue is resolved.
Comment #8
mikeker commentedFinally read Drupal's Twig coding standards... :)
Comment #10
joelpittetThank you @mikeker, I've pushed that to the 8.x-1.x
Comment #12
FOXs-M commentedyou Can Use this CSS Code: