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

Fixed column gaps to be larger when only a single sidebar is present. #267

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

alan-cole
Copy link
Collaborator

@alan-cole alan-cole commented Jun 20, 2024

Checklist before requesting a review

  • I have formatted the subject to include the issue number
    as [#123] Verb in past tense with a period at the end.
  • I have provided information in the Changed section about WHY something was
    done if this was a bespoke implementation.
  • I have performed a self-review of my code.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have run new and existing relevant tests locally with my changes,
    and they have passed.
  • I have provided screenshots, where applicable.

Changed

  • Fixed column gaps to be larger when only a single sidebar is present.
  • Updated grid-gap to gap as docs say grid-gap is a legacy alias.
  • Fixed grid ordering not applying due to double .ct-layout__inner.

Screenshots

gap-and-order.mp4

- Updated `grid-gap` to `gap` as docs say `grid-gap` is a legacy alias.
@alan-cole alan-cole requested a review from AlexSkrypnyk June 20, 2024 05:08
@alan-cole alan-cole added the PR: Needs review Pull request needs a review from assigned developers label Jun 20, 2024
Copy link

github-actions bot commented Jun 20, 2024

@github-actions github-actions bot temporarily deployed to pull request June 20, 2024 05:11 Inactive
Copy link

codecov bot commented Jun 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 14.38%. Comparing base (e292a8a) to head (cffc118).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #267   +/-   ##
=======================================
  Coverage   14.38%   14.38%           
=======================================
  Files          26       26           
  Lines        1244     1244           
  Branches      300      300           
=======================================
  Hits          179      179           
  Misses        855      855           
  Partials      210      210           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AlexSkrypnyk
Copy link
Contributor

The gap is not correct on mobile

Cursor_and_Base___Layout_-_Layout_⋅_Storybook

@AlexSkrypnyk AlexSkrypnyk added PR: Requires more work Pull request was reviewed and reviver(s) asked to work further on the pull request and removed PR: Needs review Pull request needs a review from assigned developers labels Jun 20, 2024
Copy link
Contributor

@AlexSkrypnyk AlexSkrypnyk left a comment

Choose a reason for hiding this comment

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

please update to fix the gap on mobile

@alan-cole alan-cole requested a review from AlexSkrypnyk June 20, 2024 05:39
@alan-cole alan-cole added PR: Needs review Pull request needs a review from assigned developers and removed PR: Requires more work Pull request was reviewed and reviver(s) asked to work further on the pull request labels Jun 20, 2024
@github-actions github-actions bot temporarily deployed to pull request June 20, 2024 05:41 Inactive
@alan-cole
Copy link
Collaborator Author

alan-cole commented Jun 20, 2024

please update to fix the gap on mobile

This issue was related to the ordering permutation variables not applying due to:

.ct-layout {
  $root: &;
  &__inner {
    #{$root}--no-bottom-left > #{$root}__inner > & {
      color: red;
    }
  }
}

resulting in:

.ct-layout--no-bottom-left > .ct-layout__inner > .ct-layout__inner {
  color: red;
}

where it should only be:

.ct-layout--no-bottom-left > .ct-layout__inner {
  color: red;
}

@AlexSkrypnyk AlexSkrypnyk added PR: Ready for test Pull request is ready for manual testing and removed PR: Needs review Pull request needs a review from assigned developers labels Jun 20, 2024
@AlexSkrypnyk
Copy link
Contributor

@sonamchaturvedi28
waiting for your confirmation, please.

@sonamchaturvedi28
Copy link

sonamchaturvedi28 commented Jun 20, 2024

Test Env: https://6673c10cb8e00cf6d7986324--civictheme-uikit.netlify.app/?path=/story/base-layout--layout
Test Status: FAIL
Test Result:

# Issue
1 Adding long content - gap between top and bottom sidebar is huge. This issue exists for Nested layout as well
2 Vertical Spacing is not working with sidebars
1. By default None is selected in the property, however Top spacing is applied
2. on selecting any other option, always Top spacing get applied
3 Bottom sidebars are not inline with nested bottom

Issue1:
image

Issue2:
Screenshot 2024-06-20 at 10 46 28 AM

Issue3:
Screenshot 2024-06-20 at 11 32 44 AM

@AlexSkrypnyk
Copy link
Contributor

1 is an issue
2 and 3 are by design.
thank you @sonamchaturvedi28

@AlexSkrypnyk AlexSkrypnyk merged commit 10cfb6f into main Jun 20, 2024
7 checks passed
@AlexSkrypnyk AlexSkrypnyk deleted the feature/layout-single-col-gap branch June 20, 2024 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Ready for test Pull request is ready for manual testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants