[Feat]: sp-dialog: add property to skip auto scrolling #5058
Labels
Component: Dialog
enhancement
New feature or request
jira ticket created
triage
An issue needing triage
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 onoffsetHeight < scrollHeight
, see:spectrum-web-components/packages/alert-dialog/src/AlertDialog.ts
Line 152 in 4fd414b
We'd like to have a property/attribute like
skipAutoScrolling
or similar that prevents such feature and "preserves" the css value:Mockups or screenshots
Implementation notes or ideas
No response
The text was updated successfully, but these errors were encountered: