Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This task is for a new student in MD Systems, don't do it if it was not assigned to you.
Problem/Motivation
The paragraphs field widget always displays a label of the paragraph type name at the top. This can lead to confusing situations:
During the sprints we discussed about this and we decided that we will prefix the label with "Type: ". This would look like this:
Proposed resolution
Add a "Type: " text before the Paragraph type label in InlineParagraphsWidget.php
Remaining tasks
Also add tests :)
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#10 | label_nesting_leads_to-2735227-10.patch | 1.2 KB | Bambell |
#7 | Screenshot from 2016-06-08 17-13-28.png | 104.38 KB | Ginovski |
#5 | Screenshot from 2016-06-08 14:47:57.png | 27.43 KB | johnchque |
#5 | Screenshot from 2016-06-08 14:47:06.png | 26.09 KB | johnchque |
Comments
Comment #2
miro_dietikerAlternative options:
1) "Paragraph type:" => "Type:"
We try to avoid repeating mention of "Paragraph" in UI. Because in your screen it's "Content" that sometimes is named "Paragraph(s)".
Or did you intend to use the widget settings label? (singular or plural?)
I think it's still adding redundancy.
Also we should keep short to keep room for the closed / collapsed summary we will add...
2) Or removal of the field label if it's identical to the paragraph type.
3) Or removal of the field label if it's only a single field.
Comment #3
Lukas von BlarerI think field removal would not make sense. I actually also though about whether including "Paragraph" is a good idea. Lets use "Type: ".
Comment #4
jonathanshawThe type label was removed in #2642810: UX improvements for nested paragraphs as a step to UX improvement by decluttering the layout. However, that issue did not create an alternative way of distinguishing the paragraph and field labels, leaving us with the situation described in the IS here.
#2668706: Visual weight of paragraph field labels vs paragraph type labels vs field labels was created as a follow-up to resolve the problem, therefore closing this issue as duplicate.
Comment #5
johnchqueChange a bit the IS and set it back to active since we re added the label.
Comment #6
johnchqueComment #7
Ginovski CreditAttribution: Ginovski commentedComment #8
Ginovski CreditAttribution: Ginovski commentedDeleted few extra spaces.
Comment #9
johnchqueNice work, close enough, but the "strong" tag should be in the same string as 'Type: '. No need to have them separated.
Good to know you assigned the issue to yourself.
Comment #10
Bambell CreditAttribution: Bambell at MD Systems GmbH commentedNew student has worked enough :-).
Comment #11
Lukas von BlarerWhile this doesn't declutter the UI, it still helps understanding which are field labels an which are labels for the paragraph type. Is there a simple way to seperate it a little more? Should we get this committed and deal with that in #2668706: Visual weight of paragraph field labels vs paragraph type labels vs field labels?
Comment #13
miro_dietikerYeah that was the decision: First make it clearer and then discuss about visual improvements in the related issue.
Thus i committed and we can close the issue here because its no more confusing.