Orange-OpenSource / ods-ios

A SwiftUI components library with code examples for Orange Design System
https://orange-opensource.github.io/ods-ios/
MIT License
25 stars 6 forks source link

[Bug]: Documentation - Embedded pages in ZeroHeight can contain a vertical scroll bar #796

Closed B3nz01d closed 3 months ago

B3nz01d commented 3 months ago

Prerequisites

Describe the issue

When a user goes to the Develop tab of https://system.design.orange.com/0c1af118d/p/0326f8-navigation-rails/b/39a3e0 and reads the page, the embedded content is scrollable and shouldn't:

2024-03-28 07 07 43

This seems to be caused by the following style in detail.html or main.html (I don't remember which one is used for the embedded version):

html, body {
  min-height: 100vh;
}

This is to be tested in a ZeroHeight staging environment, but I'd say it's safe to remove only for the layout in "embedded mode" (pages without the _docs suffix in the URL; e.g. https://orange-opensource.github.io/ods-flutter/components/navigation_rail)

Linked tasks: