Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Step] make steps wrap by default as intended for single step #397

Merged
merged 2 commits into from
Jan 16, 2019

Conversation

lubber-de
Copy link
Member

@lubber-de lubber-de commented Jan 15, 2019

Description

A huge amount of steps were overflowing the viewport if the amount of steps was not explicit given as classname. It was already intended to wrap (a single step already got flex-wrap:wrap), but it was missing for grouping by using steps.

This is ignored when unstackable steps is used because a possible overflow is wanted behavior.

If a step amount is given to the group (six steps), the behavior stays as before: Each step will reduce itself to stay inline. (Also part of the testcase below)

Testcase

http://jsfiddle.net/v8yrgs6t/
Remove the CSS to see the issue

Screenshot

Before

image

After

image

Closes

Semantic-Org/Semantic-UI#4880
Semantic-Org/Semantic-UI#4867
Semantic-Org/Semantic-UI-React#1114

@lubber-de lubber-de added type/bug Any issue which is a bug or PR which fixes a bug lang/css Anything involving CSS state/awaiting-reviews Pull requests which are waiting for reviews tag/sui-issue Taken from an existing Issue/PR of SUI labels Jan 15, 2019
@lubber-de lubber-de added this to the 2.7.x milestone Jan 15, 2019
Copy link
Member

@y0hami y0hami left a comment

Choose a reason for hiding this comment

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

This shouldn't be applied when a step as .unstackable https://fomantic-ui.com/elements/step.html#unstackable

@lubber-de
Copy link
Member Author

@hammy2899 Done. New fiddle http://jsfiddle.net/v8yrgs6t/

Copy link
Member

@y0hami y0hami left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@ColinFrick ColinFrick left a comment

Choose a reason for hiding this comment

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

LGTM

@lubber-de lubber-de changed the title fix(step): make steps wrap by default as intended for single step [Step] make steps wrap by default as intended for single step Jan 15, 2019
@y0hami y0hami added type/feat Any feature requests or improvements and removed type/bug Any issue which is a bug or PR which fixes a bug labels Jan 16, 2019
@y0hami y0hami merged commit f04011b into fomantic:develop Jan 16, 2019
@y0hami y0hami removed state/awaiting-reviews Pull requests which are waiting for reviews labels Jan 16, 2019
@lubber-de lubber-de modified the milestones: 2.7.x, 2.7.2 Jan 16, 2019
@lubber-de lubber-de deleted the fix/4880/step_wrapping branch January 16, 2019 12:45
@y0hami y0hami mentioned this pull request Feb 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang/css Anything involving CSS tag/sui-issue Taken from an existing Issue/PR of SUI type/feat Any feature requests or improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants