Skip to content

Conversation

@asrivastava0308
Copy link
Contributor

@asrivastava0308 asrivastava0308 commented Jan 26, 2026

What changes i am proposing to add

  • Typography: Added font-size-xxl utility class using $font-size-4 (1.5rem / 24px) to support larger non-heading text. Previously, the largest non-heading size available was font-size-xl at 1.25rem (20px).

  • Layout: Introduced layout-menu-collapsed modifier for documentation pages. This provides optimized column proportions for layouts with a collapsible menu, offering better content visibility compared to the standard holy-grail layout.

Link - http://localhost:1111/components/layout.html

Testing

  1. git fetch ; git checkout; aks/adding-scss-for-toc ; npm run start
  2. Expected result:

Next Step

  • Submit a changeset.

@asrivastava0308 asrivastava0308 requested a review from a team as a code owner January 26, 2026 21:21
@changeset-bot
Copy link

changeset-bot bot commented Jan 26, 2026

⚠️ No Changeset found

Latest commit: 3c8f089

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@wibjorn wibjorn changed the title Adding Collapsible TOC layout SCSS Adding Collapsible menu layout SCSS Jan 27, 2026
}
}

.layout.layout-menu-collapsed {
Copy link
Contributor

@wibjorn wibjorn Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs an update to the documentation page too, otherwise we can't test how it intersects with all the layouts.

site\src\components\layout.md is the relevant piece of documentation

Will need a new button to apply the class for testing on the layout page of the docs site.

image

@@ -367,6 +367,38 @@ $default-flyout-width-widescreen: 480px;
}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New class/behavior should have an integration test too:
https://github.com/microsoft/atlas-design/blob/main/integration/tests/layout.spec.ts


.layout-body-main {
width: 100%;
max-width: 900px !important;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use a variable? How'd we get to 900?


@include widescreen {
grid-template-columns:
auto calc(#{$quarter-widescreen} * 0.5) calc(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to calc here? The browser should be able to do less work if we just compute the values, right? We don't need the browse to be calculating these things when we know the value.

.layout-body-aside {
flex-shrink: 0 !important;
width: 100% !important;
min-width: 300px !important;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How'd we pick 300? Should it be a variable?

@@ -367,6 +367,38 @@ $default-flyout-width-widescreen: 480px;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR will need a changeset too npx changeset add to add a minor changeset to both the css package and the layout package.

@asrivastava0308 asrivastava0308 force-pushed the aks/adding-scss-for-toc branch from 43ad9e8 to 3c8f089 Compare January 29, 2026 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants