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

Remove medium breakpoint #4105

Merged
merged 3 commits into from
Oct 28, 2021
Merged

Conversation

@bartaz bartaz added the Feature 🎁 New feature or request label Oct 28, 2021
@webteam-app
Copy link

Demo starting at https://vanilla-framework-4105.demos.haus

@bartaz bartaz changed the title Remove medium breakpoint WIP: Remove medium breakpoint Oct 28, 2021
@bartaz bartaz changed the title WIP: Remove medium breakpoint Remove medium breakpoint Oct 28, 2021
@lyubomir-popov
Copy link
Contributor

lyubomir-popov commented Oct 28, 2021

@bartaz Lovely work, looks good to me.

Copy link
Contributor

@sowasred2012 sowasred2012 left a comment

Choose a reason for hiding this comment

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

LGTM, just a couple of questions

@@ -34,7 +34,7 @@ Directly inside the drawer you can place one or more navigation components. They

On a small screen, the `l-navigation-bar` appears horizontally at the top of the screen. It toggles the side navigation drawer, which is an off-canvas overlay on the left side of the screen. The drawer can be fully collapsed by adding the `is-collapsed` class to the `l-navigation` element. This behaviour can also be invoked using a button or a link in `l-navigation-bar`.

On medium or large screen sizes `l-navigation-bar` is not meant to be used and is therefore hidden. Beyond `$breakpoint-medium` the side navigation is always visible on the left side of the screen.
On medium or large screen sizes `l-navigation-bar` is not meant to be used and is therefore hidden. Beyond `$breakpoint-large` the side navigation is always visible on the left side of the screen.
Copy link
Contributor

Choose a reason for hiding this comment

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

Only comment I have is on this - it feels like mentioning "medium" screen sizes might cause confusion now that we're not explicitly defining those anymore.

Suggested change
On medium or large screen sizes `l-navigation-bar` is not meant to be used and is therefore hidden. Beyond `$breakpoint-large` the side navigation is always visible on the left side of the screen.
On large screen sizes `l-navigation-bar` is not meant to be used and is therefore hidden. Beyond `$breakpoint-large` the side navigation is always visible on the left side of the screen.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sowasred2012 We kind of still have a concept of 'medium' screen size. It's a range between small and large breakpoints. At least now we can clearly define it. Before it was always unclear - is medium screen smaller than medium breakpoint or is it larger?...

Anyway, we should update the breakpoints documentation page to what are the breakpoints and what we consider small/medium/large screen.

@@ -34,7 +34,7 @@ Directly inside the drawer you can place one or more navigation components. They

On a small screen, the `l-navigation-bar` appears horizontally at the top of the screen. It toggles the side navigation drawer, which is an off-canvas overlay on the left side of the screen. The drawer can be fully collapsed by adding the `is-collapsed` class to the `l-navigation` element. This behaviour can also be invoked using a button or a link in `l-navigation-bar`.

On medium or large screen sizes `l-navigation-bar` is not meant to be used and is therefore hidden. Beyond `$breakpoint-medium` the side navigation is always visible on the left side of the screen.
On medium or large screen sizes `l-navigation-bar` is not meant to be used and is therefore hidden. Beyond `$breakpoint-large` the side navigation is always visible on the left side of the screen.

On medium screens, the side navigation drawer is by default collapsed to a width of `3rem`. It expands on hover. It can be pinned by adding the `is-pinned` class to the `l-navigation` element.
Copy link
Contributor

Choose a reason for hiding this comment

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

Again, the concept of medium screens - not sure what would be better (if you agree this needs to change).

@bartaz bartaz merged commit 9308655 into canonical:vanilla-3.0 Oct 28, 2021
@bartaz bartaz deleted the medium-breakpoint branch October 28, 2021 14:04
bartaz added a commit that referenced this pull request Nov 3, 2021
* Remove $breakpoint-medium from the code
* Update the examples and docs after removing medium breakpoint
bartaz added a commit that referenced this pull request Nov 3, 2021
* Remove $breakpoint-medium from the code
* Update the examples and docs after removing medium breakpoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants