Problem/Motivation
We need to develop a new Rich Text component that is fully compatible with Drupal Canvas and follows Bootstrap 5 typography standards.
The component should provide a flexible and reusable rich text block that supports structured content and alignment options without relying on inline styling.

The Text component will be used across pages for paragraphs, formatted content blocks, descriptive sections, and supporting content areas.
Key requirements:
- Bootstrap 5 compatible typography structure
- Canvas drag-and-drop support
- Rich text support (paragraphs, links, lists, inline formatting)
- Horizontal alignment options (Start, Center, End)
- Optional max-width configuration
- Responsive behavior
Steps to reproduce
- Add the Text component in Drupal Canvas.
- Insert rich text content (paragraphs, lists, links, etc.).
- Select horizontal alignment option.
- Configure optional max-width if required.
- Verify responsive behavior across breakpoints.
The component should render clean typography using Bootstrap utility classes and maintain consistent spacing.
Proposed resolution
- Develop a new Text component using Bootstrap 5 typography utilities.
- Enable Canvas drag-and-drop content handling.
- Implement horizontal alignment using Bootstrap utility classes.
- Add optional max-width control for layout flexibility.
- Ensure fully responsive behavior.
The Text component will provide a clean, flexible, and reusable typography block aligned with Varbase and Bootstrap 5 architecture standards.
Remaining tasks
- ✅ File an issue about this project
- ❌ Addition/Change/Update/Fix to this project
- ❌ Testing to ensure no regression
- ➖ Automated unit/functional testing coverage
- ➖ Developer Documentation support on feature change/addition
- ➖ User Guide Documentation support on feature change/addition
- ➖ UX/UI designer responsibilities
- ➖ Accessibility and Readability
- ❌ Code review from 1 Varbase core team member
- ❌ Full testing and approval
- ❌ Credit contributors
- ❌ Review with the product owner
- ❌ Update Release Notes
- ❌ Release
Varbase update type
- ✅ No Update
- ➖ Optional Update
- ➖ Forced Update
- ➖ Forced Update if Unchanged
User interface changes
- N/A
API changes
- N/A
Data model changes
- N/A
Release notes snippet
- N/A
| Comment | File | Size | Author |
|---|---|---|---|
| text-component.png | 91.08 KB | alamgir.hossain.cse |
Issue fork vartheme_bs5-3575120
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
alamgir.hossain.cse commentedComment #4
alamgir.hossain.cse commentedComment #5
rajab natshahComment #6
alamgir.hossain.cse commentedComment #7
rajab natshahComment #8
rajab natshahNoticed the work on #3576763: Plain Text Component for Canvas
and #3576762: Rich Text Component for Canvas
Maybe they are duplicate.
If they are please close one of them as duplicate
Comment #9
alamgir.hossain.cse commentedComment #10
alamgir.hossain.cse commentedComment #11
alamgir.hossain.cse commentedComment #13
rajab natshah