Skip to content

[Bug]: Modal with an announced in a will contain a double scrollbar #27369

@zachhats

Description

@zachhats

Library

React / v8 (@fluentui/react)

System Info

C:\PowerQuery-Web>npx envinfo --system --npmPackages '{@fluent/*}' --browsers
Need to install the following packages:
  envinfo@7.8.1
Ok to proceed? (y) y

  System:
    OS: Windows 10 10.0.19045
    CPU: (4) x64 Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz
    Memory: 8.73 GB / 23.83 GB
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (111.0.1661.44)
    Internet Explorer: 11.0.19041.1566

Are you reporting Accessibility issue?

None

Reproduction

https://codepen.io/zachhats/pen/dyqLaxG

Bug Description

Actual Behavior

if you have a modal that contains an announced inside an element that has gone outside its max-height, the modal itself will contain a scrollbar

if you remove the announced from the codepen, you will see the double scrollbar go away

Expected Behavior

there is only one scrollbar for the existing codepen

Logs

No response

Requested priority

Normal

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions