-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Use Badge component in page markers #68103
Changes from all commits
7235792
342c6a8
b349329
1f25289
32f76df
7af1658
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
&.editor-post-card-panel__title { | ||
@include heading-medium(); | ||
margin: 0; | ||
padding: 2px 0; | ||
display: flex; | ||
align-items: center; | ||
flex-wrap: wrap; | ||
|
@@ -34,19 +33,11 @@ | |
margin-bottom: $grid-unit-10; | ||
} | ||
|
||
.editor-post-card-panel__title-name { | ||
padding: 2px 0; | ||
} | ||
Comment on lines
+36
to
+38
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is unnecessary, because the wrapping There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @tyxla Thanks for reviewing! Right, in that case is indeed not needed. I kept it for the particular case when the page title is long, and displayed in two lines. That's when, without the padding, the vertical alignment ends up pushing the page title to the top and the alignment between title and icon is not working (please see the screenshot on the If we're okay with not having that, I can remove it. The only thing is that it won't be in line with what we have for the Block Card. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The proposed truncation is for the Badge, though. What's pushing things to be in two lines is the page title in this case. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, I see what you mean. I think it makes sense to keep the padding then 👍 |
||
|
||
.editor-post-card-panel__description { | ||
color: $gray-700; | ||
} | ||
} | ||
|
||
.editor-post-card-panel__title-badge { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👏 |
||
background: $gray-100; | ||
color: $gray-800; | ||
padding: 0 $grid-unit-05; | ||
border-radius: $radius-small; | ||
font-size: 12px; | ||
font-weight: 400; | ||
flex-shrink: 0; | ||
line-height: $grid-unit-05 * 5; | ||
display: inline-block; | ||
} |
This file was deleted.
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.
I think this wrapper is unnecessary, see below comment for explanation.