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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update breadcrumb's bottom margin #4842

Merged
merged 5 commits into from
Jul 27, 2023

Conversation

ClementChaumel
Copy link
Contributor

@ClementChaumel ClementChaumel commented Jul 24, 2023

Done

Reduce margin-bottom on breadcrumbs to 1rem
Make the breadcrumbs use small caps

Fixes #4818

QA

  • Open demo
  • See that the bottom margin is 1rem
  • See that the breadcrumbs use small caps

Check if PR is ready for release

If this PR contains Vanilla SCSS code changes, it should contain the following changes to make sure it's ready for the release:

  • PR should have one of the following labels to automatically categorise it in release notes:
    • Feature 馃巵, Breaking Change 馃挘, Bug 馃悰, Documentation 馃摑, Maintenance 馃敤.
  • Vanilla version in package.json should be updated relative to the most recent release, following semver convention:
    • if CSS class names are not changed it can be bugfix relesase (x.x.X)
    • if CSS class names are changed/added/removed it should be minor version (x.X.0)
    • see the wiki for more details
  • Any changes to component class names (new patterns, variants, removed or added features) should be listed on the what's new page.

@webteam-app
Copy link

webteam-app commented Jul 24, 2023

package.json Outdated Show resolved Hide resolved
@bartaz
Copy link
Contributor

bartaz commented Jul 26, 2023

Comparing to canonical.com/careers (which I think Lyubo wants to match) we still have too much of the margin I think:

image

}

.p-breadcrumbs__item {
@extend %default-text;
@extend %small-caps-text;

display: inline-block;
margin-bottom: $spv-nudge-compensation;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be removed, this is some old margin, and we want the margin from small caps text.

padding-left: 0;
}
.p-breadcrumbs__items {
margin-bottom: $spv--large;
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if this is needed. If we have margin from small caps text on the __item this probably should not be needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The margin from small caps is overriden by margin-bottom: $spv-nudge-compensation; which I'm reluctant to touch because it sounds like some baseline grid magic

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah sorry I was confused what your previous comment referred to!

Copy link
Contributor

Choose a reason for hiding this comment

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

Sure, I guess it used to be a margin to align with baseline, but because we are replacing margin completely, changing font text style to something else etc, old styles need to be removed, so we can start with clean state, and then see if they baseline needs adjustments.

But if we use defaults from small caps we should not need anything else (as that should be aligned already).

margin-left: 0;
padding-left: 0;
}
.p-breadcrumbs__items {
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for expanding the classname!

Copy link
Contributor

@bartaz bartaz left a comment

Choose a reason for hiding this comment

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

Splendid, thanks!

@bartaz bartaz merged commit 225cee0 into canonical:main Jul 27, 2023
5 checks passed
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.

P-breadcrumbs: add margin-bottom
3 participants