Skip to content

[Feat]: sp-dialog: add property to skip auto scrolling #5058

Open
@spdev3000

Description

Code of conduct

  • I agree to follow this project's code of conduct.

Impacted component(s)

Dialog

Description of the requested feature

As we sometimes use dialogs with "internal" scrolling, such as settings dialog with a side nav on the left and a content area on the right, we take care of the content scrolling itself.
But currently it's setup in AlertDialog.shouldManageTabOrderForScrolling() that it adds: overflow: auto; automatically based on offsetHeight < scrollHeight, see:

public shouldManageTabOrderForScrolling = (): void => {

We'd like to have a property/attribute like skipAutoScrolling or similar that prevents such feature and "preserves" the css value:

.content {
    overflow: hidden;
}

Mockups or screenshots

Image

Implementation notes or ideas

No response

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