Skip to content

v6: Albums Example layout fixes#42357

Open
coliff wants to merge 1 commit intotwbs:v6-devfrom
coliff:dev/coliff/albums-example-fix
Open

v6: Albums Example layout fixes#42357
coliff wants to merge 1 commit intotwbs:v6-devfrom
coliff:dev/coliff/albums-example-fix

Conversation

@coliff
Copy link
Copy Markdown
Contributor

@coliff coliff commented Apr 24, 2026

  • Updates album example to reflect class name changes in Bootstrap v6
  • All self explanatory but I did make a tiny opinionated change in adding horizontal margin between buttons in header as they were very close before :-)

Type of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would change existing functionality)

Checklist

  • I have read the contributing guidelines
  • My code follows the code style of the project (using npm run lint)
  • My change introduces changes to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

Live previews

previous for reference:

- navbar hamburger button - add btn-icon class
- align content at bottom of cards
- use a valid background color for albums (main content)
Copilot AI review requested due to automatic review settings April 24, 2026 01:49
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the Album example markup to align with Bootstrap v6 utility/class changes and adjusts spacing/layout to improve visual alignment.

Changes:

  • Updates navbar toggler and background utility classes for v6.
  • Tweaks CTA button spacing in the header.
  • Adds w-100 to card action rows to influence layout width.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +48 to +49
<a href="#" class="btn-solid theme-primary m-2">Main call to action</a>
<a href="#" class="btn-solid theme-secondary m-2">Secondary action</a>
Copy link

Copilot AI Apr 24, 2026

Choose a reason for hiding this comment

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

Using m-2 adds horizontal margin on both sides of each button, which can create unintended outer spacing (e.g., extra left margin before the first button and extra right margin after the last). If the goal is just spacing between the buttons, prefer using directional spacing (e.g., me-2 on the first button while keeping my-2 for vertical rhythm) or apply a parent gap-* with a flex wrapper so only inter-button spacing is affected.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this was an intentional change on my part. I thought the buttons were too close before... I can revert it though if requested.

<div class="card-body">
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<div class="d-flex justify-content-between align-items-center">
<div class="d-flex justify-content-between align-items-center w-100">
Copy link

Copilot AI Apr 24, 2026

Choose a reason for hiding this comment

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

w-100 is likely redundant here because a div is block-level by default and will typically already span the available width. If there isn't a specific shrink-to-fit scenario being addressed, removing w-100 would reduce noise in the example and keep the markup closer to the minimal pattern.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this change was intentional, the div was not full-width of the containing card before.... see
https://v6-dev--twbs-bootstrap.netlify.app/docs/6.0/examples/album/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

3 participants