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

Stats: Minor style updates to chart tooltips #98254

Merged
merged 3 commits into from
Jan 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion client/my-sites/stats/modernized-tooltip-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
font-size: $font-body-small;
padding: 16px 24px;

// Default tooltip is 230px wide. We need a bit more room
// to account for longer date labels and post titles.
width: fit-content;
min-width: 230px;
max-width: 300px;

ul {
li {
font-size: $font-body-small;
Expand Down Expand Up @@ -74,7 +80,6 @@
font-size: $font-body-extra-small;
margin-bottom: 0;
padding-left: 30px;
text-decoration: underline;

.label {
height: auto;
Expand All @@ -83,6 +88,10 @@
letter-spacing: inherit;
word-break: break-word;
}
// Override the default gradient.
.value::before {
background: none;
}
}
}
}
Loading