Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
🪟 🧹 Splits the imageBlock component in two. #17479
🪟 🧹 Splits the imageBlock component in two. #17479
Changes from 1 commit
8a3aeae
d5f9e12
a3212a4
38a2008
6a00977
4c75d4b
fc4e0f8
4dfa205
0287eaa
864c3f1
187280d
bdb9285
97628ee
da207f6
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Currently the number in the circle is not really centered:
We can solve this by adding:
to the .circle class here. We need the
line-height
because we're using this component in some cases where the parent sets a custom line-height, which would mess up the vertical centering.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.
In addition I'd suggest we try making this component also work if there are longer numbers in it, which would require the following changes:
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.
There should be no need for the min-width, since we're already setting the width explicitaly to 20px.Ignore this, instead see my comment above about making this work with longer numbers as well.
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 don't think we want the
margin-right
on this component. This is meant in a place this is used to keep distance from another element. The place where this is used should apply this and not the component itself, since it does not really have any idea about the actual surroundings where this is used.The
ConnectEntitiesCell
already sets a margin on this component anyway, in theDiffIconBlock
we can increase thegap
property on the parent flex box container to give more spacing between the numbers.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.
This needs to be
colors.$black
to have proper contrast ratio between text and background:✔️ https://color.review/check/000000-67DAE1
❌ https://color.review/check/FFFFFF-67DAE1
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.
This needs to be
colors.$black
to have proper contrast ratio between text and background:✔️ https://color.review/check/000000-67DAE1
❌ https://color.review/check/FFFFFF-67DAE1
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.
This needs to be
colors.$black
to have proper contrast ratio between text and background:✔️ https://color.review/check/000000-FF5E7B
❌ https://color.review/check/FFFFFF-FF5E7B
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.
TIL! That's such a cool website!
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.
This should be removed, so the text colors from the above
.circle.red
etc are actually having an affect.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.
With the changes mentioned above to center the number, the
padding
isn't having any effect anymore and should be removed.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.
We should accept
className
as a property on all components and merge it with the other classnames for the wrapping div. Otherwise restyling, e.g. adding margin to this component in consuming places won't work.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.
This should be typed so we know which value we expect:
Also since the lack of the value has currently a darkBlue color, we should make sure there's a way to specify that as well via an explicit value (i.e.
default
in this case), so the logic for the colors below also needs adjustments to handle this.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.
@timroes I'll rename the
darkBlue
todefault
- it's so faded it looks like grey and I think the name is confusing!