Skip to content

Breakpoints are set from sharedTokens#2602

Merged
matyasf merged 1 commit into
masterfrom
unify_breakpoints
Jun 25, 2026
Merged

Breakpoints are set from sharedTokens#2602
matyasf merged 1 commit into
masterfrom
unify_breakpoints

Conversation

@matyasf

@matyasf matyasf commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator
  • FormFieldLayout and Grid now uses design tokens from sharedTokens to set breakpoint values.
  • Document app has fewer CSS breakpoints and their value are the same as the breakpoints in SharedTokens.
  • update button example in regression test with more valuers

To test:

  • check the docs app at different sizes and on mobile that it looks OK.
  • check FormFieldLayout and Grid docs pages that they look OK.
  • check the new Button examples in the regression test

INSTUI-5074

@matyasf matyasf self-assigned this Jun 23, 2026
@matyasf matyasf requested a review from adamlobler June 23, 2026 13:59
@github-actions

github-actions Bot commented Jun 23, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-06-25 15:01 UTC

@matyasf matyasf force-pushed the unify_breakpoints branch 2 times, most recently from cddecab to d72271d Compare June 23, 2026 21:16
github-actions Bot pushed a commit that referenced this pull request Jun 23, 2026
@github-actions

Copy link
Copy Markdown

Visual regression report

⚠️ Changes detected.

Status Count
Unchanged 31
Changed 1
New 0
Removed 0

📊 View full report

Diff images (1)

button-and-derivatives.png — 98193 pixels differ

Baselines come from the visual-baselines branch. They refresh on every merge to master.

private navFocusRegion: FocusRegion | null = null

static defaultProps = {
trayWidth: 300

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

For some reason from ancient times, the App component had this prop. It's now hardcoded

@matyasf matyasf requested a review from HerrTopi June 24, 2026 12:30
@matyasf matyasf requested a review from git-nandor June 25, 2026 08:26
Comment thread docs/upgrading/upgrade-guide.md Outdated
@@ -696,6 +696,7 @@ type: embed
{name:"spacing",note:""},
{name:"inlinePadding",note:""},
{name:"asteriskColor",note:""}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A missing trailing comma breaks the rendering.

Image

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

good catch, fixed

Comment thread docs/upgrading/upgrade-guide.md Outdated
Comment on lines +752 to +753
{name:"largeMin",note:"value is read from sharedTokens.breakpoints.lg"},
{name:"xLargeMin",note:"value is read from sharedTokens.breakpoints.xl"}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

These largeMin/xLargeMin notes only say the value now comes from sharedTokens, but the actual breakpoints also shift (large 62em → 64em, xLarge 75em → 80em) for Grid, Grid.Col and Grid.Row — might be worth mention the value change.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

added it

Comment on lines -125 to +121
// if there's room for the tray + 700px, load with the tray open (unless it's the homepage)
const smallerScreen = window.matchMedia(
`(max-width: ${props.trayWidth + 700}px)`
).matches
// if there's room for the tray + 724px, load with the tray open (unless it's the homepage)
const smallerScreen = window.matchMedia(`(max-width: 1024px)`).matches

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since this is now a hardcoded 1024px rather than a calculation based on trayWidth, the "tray + 724px" comment is a bit confusing

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Actually this was a weird logic. Now we only hide the side navigation if the user is on smaller screens (we always show it on the homepage, I have no idea why this way not the case before)

@matyasf matyasf force-pushed the unify_breakpoints branch from d72271d to 73e1c85 Compare June 25, 2026 12:00
FormFieldLayout and Grid now uses design tokens from sharedTokens to set breakpoint values.
Document app has fewer CSS breakpoints and their value are the same as the breakpoints in
SharedTokens.
update button example in regression test with more valuers

INSTUI-5074
@matyasf matyasf force-pushed the unify_breakpoints branch from 73e1c85 to ae761e5 Compare June 25, 2026 12:06
@matyasf matyasf requested a review from git-nandor June 25, 2026 12:33
@matyasf matyasf merged commit 3ac1e64 into master Jun 25, 2026
9 of 10 checks passed
@matyasf matyasf deleted the unify_breakpoints branch June 25, 2026 15:01
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.

4 participants