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

Make the idle frames more obvious with a distinct border color on Sample tooltip stacks #5316

Open
canova opened this issue Jan 15, 2025 · 8 comments
Labels
polish Small features or changes that do not require planning to work on. These help out our end users. timeline Issues related to the header timeline view

Comments

@canova
Copy link
Member

canova commented Jan 15, 2025

Currently they show a grey border on the left, which is the same color as the "Other" category.

See the image for example:

Screenshot 2025-01-15 at 2 16 38 PM

It could be better to use white or something else as it's color on the left. White can be tricky for visibility though.

┆Issue is synchronized with this Jira Task

@canova canova added polish Small features or changes that do not require planning to work on. These help out our end users. timeline Issues related to the header timeline view labels Jan 15, 2025
@canova
Copy link
Member Author

canova commented Jan 15, 2025

It looks like Idle category uses the "transparent" color in the profile data. And We have a special handling for it here:

border-color: rgb(0 0 0 / 0.4);

When I overwrite this color for the tooltip and make it white, this is the border I get:
Screenshot 2025-01-15 at 2 24 26 PM
Which is not really visible at all. And since this is a border, I cant really add a border to a border. We can try some other lighter grey.

Here's a border with rgb(0 0 0 / 0.1):
Screenshot 2025-01-15 at 2 25 55 PM

And here's a border with rgb(0 0 0 / 0.2):
Screenshot 2025-01-15 at 2 28 01 PM

What do you think @fqueze ?

@julienw
Copy link
Contributor

julienw commented Jan 15, 2025

A bit crazy idea: with a box-shadow you could add a left border to the border, maybe something like this;

box-shadow: -1px 0 black;

@canova
Copy link
Member Author

canova commented Jan 16, 2025

Interesting idea, but I don't think it worked out either:

Image

@mstange
Copy link
Contributor

mstange commented Jan 16, 2025

I think the rgb(0 0 0 / 0.1) variant looks fine.

@canova
Copy link
Member Author

canova commented Jan 17, 2025

I was also leaning towards the one with rgb(0 0 0 / 0.1). I was thinking about the accessibility aspect of it though, but one can argue that it's not a critical information and it's already surfaced in the "category" field above.

@mstange
Copy link
Contributor

mstange commented Jan 17, 2025

it's not a critical information and it's already surfaced in the "category" field above.

Yes, I agree with that argument.

@julienw
Copy link
Contributor

julienw commented Jan 17, 2025

Interesting idea, but I don't think it worked out either:
Image

I meant it only for the white ones :-)

@julienw
Copy link
Contributor

julienw commented Jan 17, 2025

I was also leaning towards the one with rgb(0 0 0 / 0.1). I was thinking about the accessibility aspect of it though, but one can argue that it's not a critical information and it's already surfaced in the "category" field above.

We're already not super great for accessibility anyway, I think we'd need the category name to be displayed for each line to be correctly accessible, but that would make the tooltip a bit crowded.

I'm also fine with the light grey solution for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
polish Small features or changes that do not require planning to work on. These help out our end users. timeline Issues related to the header timeline view
Projects
None yet
Development

No branches or pull requests

3 participants