Repository navigation
Display the module Course(s) field description below the select - #8090
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Improves the admin UI on the Sensei LMS Modules add/edit screens by changing the Course(s) field helper text from an inline element to a block-level description so it renders beneath the select instead of wrapping awkwardly alongside it.
Changes:
- Updated the module Course(s) multi-select description markup from an inline
<span>to a block<p class="description">. - Added a changelog entry documenting the UI fix.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| includes/class-sensei-modules.php | Renders the Course(s) field description as a block-level paragraph below the select on both add and edit screens. |
| changelog/fix-module-courses-field-description | Adds a patch “fixed” changelog entry for the admin UI description positioning. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
On the module add and edit screens, the "Search for and select the courses…" description is rendered as an inline
<span>right after the Course(s) select, so it flows beside the field and wraps awkwardly around it.This renders it as a block-level
<p class="description">instead, so it displays on its own line below the field. Both the "Add New Module" form and the module edit screen share this renderer, so both are fixed.Screenshots
Testing Instructions