Skip to content
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
10 changes: 10 additions & 0 deletions assets/admin/settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -342,3 +342,13 @@
background: #4054d6;
color: #fff;
}

/* Single full-width settings field: hide the Settings API's label column. */
.frcn-settings-wrapper .form-table tr.frcn-field-row--full > th {
display: none;
}

.frcn-settings-wrapper .form-table tr.frcn-field-row--full > td {
padding-left: 0;
padding-right: 0;
}
1 change: 0 additions & 1 deletion assets/admin/settings.min.css

This file was deleted.

6 changes: 5 additions & 1 deletion includes/Admin/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@ public function register_settings() {
__( 'Cookie Notice', 'frontconsent' ),
array( $this, 'field_cookie_notice' ),
$this->page_slug,
'frontconsent_section_cookie_notice'
'frontconsent_section_cookie_notice',
// The section heading already names this field; the class lets the
// stylesheet drop the Settings API's label column so the field uses
// the full panel width instead of leaving an empty gutter.
array( 'class' => 'frcn-field-row--full' )

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add automated coverage for the full-width row

Add a test that verifies the registered field receives frcn-field-row--full and that the stylesheet contains the corresponding layout rules. This change modifies both sides of that PHP/CSS integration without adding or updating any test, leaving the new behavior covered only by the manual check even though the repository explicitly requires programmatic coverage for every change.

AGENTS.md reference: AGENTS.md:L126-L129

Useful? React with 👍 / 👎.

);
}

Expand Down
Loading