twbs / twbs/bootstrap

v6: .drawer-sheet ignores .drawer-start or .drawer-end but is always centered on screen

Open
#42,754 8 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

v6 v6-revisit
Dominant language
MDX
Stars
175k
Forks
78.6k
Avg merge
7h 19m
Merged PRs (30d)
35

Description

Prerequisites
Describe the issue

The docs state that .drawer-sheet "works with any placement," but combining .drawer-sheet with .drawer-end or .drawer-start does not place the sheet flush against the right or left edge of the viewport as expected. Instead, the sheet keeps beeing centered horizontally.

Expected behavior: A

should render as being pinned to the right edge of the viewport mirroring how drawer-bottom drawer-sheet is pinned to the bottom edge

Actual behavior: The panel ignores the right-edge placement; it is centered ≥lg viewport or nearly full-width lg viewport

Reduced test cases
 <dialog class="drawer drawer-end drawer-sheet show" open tabindex="-1" aria-labelledby="drawerSheetLabel">
       <div class="drawer-header">
         <h5 class="drawer-title" id="drawerSheetLabel">Sheet drawer</h5>
       </div>
       <div class="drawer-body">
         This should be flush against the right edge, not centered.
       </div>
     </dialog>
What operating system(s) are you seeing the problem on?

Linux, Windows

What browser(s) are you seeing the problem on?

Chrome, Firefox

What version of Bootstrap are you using?

v6-dev

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reduced

test case and compare it with the documentation claim that drawer-sheet works with any placement. Reproduce it in Chrome or Firefox at different viewport widths; done means drawer-end pins the sheet to the right edge while existing drawer placements remain correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
bootstrap, css, html
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.