Skip to content

Fixes stepper content overflow#519

Open
Helge Johnsen (hj-inmeta) wants to merge 2 commits into
mainfrom
feature/90-repsonsive-stepper
Open

Fixes stepper content overflow#519
Helge Johnsen (hj-inmeta) wants to merge 2 commits into
mainfrom
feature/90-repsonsive-stepper

Conversation

@hj-inmeta

Copy link
Copy Markdown
Contributor

Describe your changes

Applies min-width: 0 to stepper elements to prevent content from overflowing, particularly with long text within steps. Ensures proper content wrapping and improves layout responsiveness.

Fixes #511

Checklist before requesting a review

  • I have performed a self-review and test of my code
  • I have added label to the PR (major, minor or patch)
  • If applicable: Is story created/updated in stories-folder?
  • If applicable: Is README-file for CSS documentation created/updated?
  • If applicable: Are unit tests created/updated for the component?
  • If applicable: Tested in Storybook with keyboard, screen reader, zoom, and color contrast
  • If new component: Is tsx-file import added to packages/react/index.tsx?
  • If new component: Is CSS-file added to packages/css/index.css?

Applies `min-width: 0` to stepper elements to prevent content from
overflowing, particularly with long text within steps. Ensures proper
content wrapping and improves layout responsiveness.

Fixes #511

Copilot AI left a comment

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.

Pull request overview

This PR aims to fix horizontal overflow in the Stepper component by adjusting CSS sizing constraints so step content (including long text and embedded components like tables/graphs) can shrink and wrap within narrow viewports (ref. #511).

Changes:

  • Adds min-width: 0 on Stepper container elements to allow flex items to shrink and prevent overflow.
  • Adds additional sizing rules for .md-stepper__step-content-children intended to improve responsiveness.

Comment on lines +158 to +167
/* Ref. https://github.com/miljodir/md-components/issues/511 */
.md-stepper__stepper-list,
.md-stepper__stepper-list-item,
.md-stepper__step-content-children {
min-width: 0;
}

.md-stepper__step-content-children {
width: 100%;
} No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Responsive Stepper

2 participants