-
Notifications
You must be signed in to change notification settings - Fork 14
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: be1ecbd The changes in this PR will be included in the next version bump. This PR includes changesets to release 16 packages
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 |
@@ -18,24 +18,3 @@ | |||
font-weight: type.$font-weight-normal; | |||
white-space: nowrap; | |||
} | |||
|
|||
.breadcrumb-item { |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
display: block; | |
display: inline-block; |
a { | ||
display: inline-flex; | ||
align-items: center; | ||
padding-block: tokens.get('post-breadcrumb', 'padding-block-text'); |
There was a problem hiding this comment.
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?
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; |
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
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:
checkEmptyOrUrl(this.url, 'The "url" property is invalid'); | |
checkUrl(this.url, 'The "url" property is invalid'); |
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
No description provided.