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

feat(components): create the post-breadcrumb-item #3659

Open
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

alionazherdetska
Copy link
Contributor

No description provided.

@alionazherdetska alionazherdetska requested a review from a team as a code owner October 4, 2024 15:41
@alionazherdetska alionazherdetska linked an issue Oct 4, 2024 that may be closed by this pull request
4 tasks
Copy link

changeset-bot bot commented Oct 4, 2024

🦋 Changeset detected

Latest commit: be1ecbd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
Name Type
@swisspost/design-system-components Major
@swisspost/design-system-styles Major
@swisspost/design-system-components-angular-workspace Patch
@swisspost/design-system-components-react Major
@swisspost/design-system-documentation Patch
@swisspost/design-system-components-angular Major
@swisspost/internet-header Patch
@swisspost/design-system-intranet-header-workspace Patch
@swisspost/design-system-nextjs-integration Patch
@swisspost/design-system-styles-primeng-workspace Patch
@swisspost/design-system-intranet-header Major
@swisspost/design-system-styles-primeng Major
@swisspost/design-system-intranet-header-showcase Patch
@swisspost/design-system-tokens Major
@swisspost/design-system-icons Major
@swisspost/design-system-migrations Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@swisspost-bot
Copy link
Contributor

swisspost-bot commented Oct 4, 2024

Related Previews

@@ -18,24 +18,3 @@
font-weight: type.$font-weight-normal;
white-space: nowrap;
}

.breadcrumb-item {
Copy link
Contributor

Choose a reason for hiding this comment

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

Removing these styles is a breaking change. Could you write a changeset to documented this?

tokens.$default-map: components.$post-breadcrumb;

:host {
display: block;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
display: block;
display: inline-block;

a {
display: inline-flex;
align-items: center;
padding-block: tokens.get('post-breadcrumb', 'padding-block-text');
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you update the styles to use the tokens function the new way?

Suggested change
padding-block: tokens.get('post-breadcrumb', 'padding-block-text');
padding-block: tokens.get('breadcrumb-padding-block-text');

/**
* The URL to which the breadcrumb item will link.
*/
@Prop() readonly url!: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we sure the URL should be mandatory?


@Watch('url')
validateUrl() {
checkEmptyOrUrl(this.url, 'The "url" property is invalid');
Copy link
Contributor

Choose a reason for hiding this comment

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

If the URL is mandatory:

Suggested change
checkEmptyOrUrl(this.url, 'The "url" property is invalid');
checkUrl(this.url, 'The "url" property is invalid');

@alizedebray alizedebray changed the title feat(breadcrumb-item): create the breadcrumb item component feat(components): create the post-breadcrumb-item Oct 15, 2024
Copy link

sonarcloud bot commented Oct 18, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
1 New Code Smells (required ≤ 0)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[component]: Breadcrumb item
3 participants