Skip to content

[drawer] --drawer-frontmost-height ignores border #4201

Closed

Description

@pasqualevitiello

Bug report

When a border is applied to the drawer popup, the --drawer-frontmost-height CSS variable no longer matches the actual rendered height of the drawer. Because the variable is smaller than the real height, the layout calculations are off during transitions. This leads to scroll bars appearing briefly while the drawer animates.

Image

Reproducible example

https://stackblitz.com/edit/eezqqdb8?file=src%2FApp.tsx (this is the nested example from the docs + 2px border)

Base UI version

v1.2.0

Which browser are you using?

Chrome

Which OS are you using?

Mac OS

Activity

  1. added
    status: waiting for maintainer
    on Feb 26, 2026
  2. linear commented on Feb 26, 2026

    @linear
  3. added
    type: bug
    component: drawer
    and removed
    status: waiting for maintainer
    on Feb 26, 2026
  4. github-actions commented on Feb 27, 2026

    @github-actions

    This fix will be available in the next npm release of Base UI.

    In the meantime, you can try it out on our Canary release channel:

    npm i https://pkg.pr.new/@base-ui/react@4202
  5. changed the title [-][Drawer] --drawer-frontmost-height ignores border[/-] [+][drawer] --drawer-frontmost-height ignores border[/+] on May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: drawertype: bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions