Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #139: a clearer collapse message #174

Merged
merged 2 commits into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion paragraphs.field_widget.inc
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ function paragraphs_field_widget_form_build(array &$form, array &$form_state, ar
backdrop_add_library('system', 'backdrop.dismiss');
$markup .= '<a href="#" class="dismiss" title="' . t('Dismiss') . '"><span class="element-invisible">' . t('Dismiss') . '</span></a>' . "\n";
}
$markup .= t('This content must be saved to record recent changes.');
$markup .= t('Click the main "Save" button to make content changes permanent.');
$markup .= '</div>';
$element['inner_actions']['must_be_saved'] = array(
'#markup' => $markup,
Expand Down
2 changes: 1 addition & 1 deletion tests/paragraphs.test
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class ParagraphsFieldTestCase extends BackdropWebTestCase {
$this->backdropPost(NULL, $create_edit, t('Collapse'));

// Paragraph item should collapse after passing validation.
$this->assertRaw(t('This content must be saved to record recent changes.'), 'Field passed per-paragraph validation');
$this->assertRaw(t('Click the main "Save" button to make content changes permanent.'), 'Field passed per-paragraph validation');

$create_edit = array(
'title' => $title,
Expand Down
Loading