Problem/Motivation

The Varbase site templates needed vertical and horizontal divider options. The horizontal one exists as Divider, so this adds Divider Vertical.

The first MR added the Divider Vertical component and was merged: !219. Testing it on the site template showed it did not follow the content height, so a follow-up MR is open: !220. A Storybook follow-up is open too: !221.

Divider Vertical between three blocks of content:
Divider Vertical between three blocks of content, Varbase Starter

Divider at its default colour:
Divider at its default colour

Proposed resolution

Follow-up !220, the same in all four themes:

  • Divider Vertical follows the content height whatever the Section's vertical alignment. It was 1rem tall in Start and Center sections; the column holding it is now stretched.
  • Every side of the divider starts in var(--bs-border-color).
  • The "Border width" option is titled "Thickness" (already merged in the first MR, option labels unchanged).
  • Colour unchanged: the VB stylesheet divider is #ebe8e5, which is the border-secondary default.

Tested on fresh Drupal CMS installs of the 1.0.x-dev site template, with drush and with the browser installer, in a real browser at 1280px and 390px: the defaults match the stylesheet colour at 1px, Divider Vertical fills the tallest column in Stretch, Start and Center sections, and there is no horizontal overflow. Storybook stories regenerated.

Storybook follow-up !221: the Divider stories now default to opacity-100 like the component, so the story shows the solid 1px line. In Storybook on a Varbase 11 site with the merged dev theme, both Default stories render #ebe8e5 at 1px with full opacity, and the controls show Thickness.

Storybook, Divider Vertical, Default story:
Storybook, Divider Vertical, Default story with its controls

Storybook, Divider, Default story:
Storybook, Divider, Default story with its controls

Remaining tasks

  • ✅ File an issue
  • ✅ Addition/Change/Update/Fix: first MR !219 merged
  • ✅ Follow-up MR !220 opened
  • ✅ Storybook follow-up MR !221 opened
  • ✅ CI pipeline green
  • ✅ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support
  • ➖ User Guide Documentation support
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ❌ Reviewed by a human
  • ❌ Code review by maintainers
  • ❌ Full testing and approval
  • ❌ Review and merge the Storybook MR !221
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Ship the Divider Vertical Canvas component config in the site-template recipe, after merge
  • ❌ Update Release Notes
  • ❌ Release

User interface changes

  • No colour change.
  • The "Border width" option of Divider Vertical is titled "Thickness".

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • Divider Vertical follows the content height in every Section alignment.

AI-Generated: Yes

Command icon 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

alamgir.hossain.cse created an issue. See original summary.

rajab natshah made their first commit to this issue’s fork.

rajab natshah’s picture

Title: Vertical Divider Component » Add a Divider Vertical component
StatusFileSize
new23.82 KB
new14.33 KB

Follow-up MR: https://git.drupalcode.org/project/vartheme_bs5/-/merge_requests/220

  • Divider Vertical now follows the content height whatever the Section's vertical alignment. Before, it was only 1rem tall in a Start or Center section. The column that holds it is stretched: .row > :has(> .divider-vertical) { align-self: stretch; }
  • Every side of Divider Vertical starts in var(--bs-border-color), so a divider without a colour class draws in the theme border colour.
  • The "Border width" option is titled "Thickness" (already merged).

Colours are unchanged here: the VB stylesheet's divider colour #ebe8e5 is already the border-secondary default.

Captured on a fresh Drupal CMS install of the Varbase Starter 1.0.x-dev site template, at 1280px.

A facts strip, three blocks separated by Divider Vertical:
Facts strip with three blocks separated by Divider Vertical

Divider (horizontal) at its default:
Horizontal Divider at its default

AI-Generated: Yes

rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Assigned: alamgir.hossain.cse » rajab natshah
Status: Active » Needs review

  • rajab natshah committed 9e9654af on 5.0.x
    fix: #3630284 Make the dividers follow the content and the design system
    

rajab natshah’s picture

Issue summary: View changes
StatusFileSize
new72.27 KB
new69.73 KB

  • rajab natshah committed 6d301eaf on 5.0.x
    fix: #3630284 Show the dividers in Storybook as the design draws them
    
rajab natshah’s picture

Assigned: rajab natshah » Unassigned
Status: Needs review » Fixed
Issue tags: +vartheme_bs5-5.0.7

✅ Released vartheme_bs5-5.0.7

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.