Problem/Motivation
In field.html.twig the visually-hidden class is never applied. This happens because the class is added when label_hidden is true, but when that happens the label is not rendered at all.
Steps to reproduce
Configure a field with the display mode for a label on "Visually hidden". Notice the visually-hidden class is not applied and the label is still visible.
Proposed resolution
Apply the visually-hidden class based on the label_display variable instead of the label_hidden variable (as it was in previous versions of this module).
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3249066-2.patch | 393 bytes | timohuisman |
Comments
Comment #2
timohuismanApplied the proposed resolution (basically reverted how it worked in version 1 & 2).
Comment #3
timohuismanComment #5
timohuisman