Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Widgets: Line up the column header above leaderboard rows with the row text.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
justify-content: space-between;
gap: var(--wpds-dimension-gap-lg);

/* Match the row text: the focus-ring row inset, plus the label padding. */
/* Match the overlay row text: focus-ring reserve plus label inset. */
padding-inline:
calc(var(--wpds-border-width-focus) + var(--wpds-dimension-padding-sm))
calc(var(--wpds-border-width-focus) + var(--a8c-charts-dimension-leaderboard-label-inset))
var(--wpds-border-width-focus);
color: var(--wpds-color-foreground-content-neutral-weak);
font-size: var(--wpds-typography-font-size-xs);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
--jpa-leaderboard-image-fit: cover;
}

/* The chart insets its own `.label` in overlay mode, but an element label
* bypasses that rule — and the overlay bar takes its height from this row. */
/* An element label bypasses the chart's overlay `.label` inset, so it reads the
* same inset itself; the overlay bar takes its height from this row. */
.row,
.rowLink {
display: flex;
Expand All @@ -78,7 +78,9 @@
min-block-size: 36px;
min-inline-size: 0;
max-inline-size: 100%;
padding-inline: var(--wpds-dimension-padding-md);
padding-inline:
var(--a8c-charts-dimension-leaderboard-label-inset)
var(--wpds-dimension-padding-md);
gap: var(--wpds-dimension-gap-xs);
overflow: hidden;
color: inherit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
// Rows sit tighter here than the package default.
--a8c-charts-dimension-leaderboard-row-gap: var(--wpds-dimension-gap-xs);

// Row text sits further in than the package default.
--a8c-charts-dimension-leaderboard-label-inset: var(--wpds-dimension-padding-md);

// Rounded rather than the package's pill shape.
--a8c-charts-border-radius-leaderboard-bar: var(--wpds-border-radius-lg);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
display: block;
min-block-size: 36px;
padding-block: var(--wpds-dimension-padding-sm);
padding-inline: var(--wpds-dimension-padding-md);
padding-inline:
var(--a8c-charts-dimension-leaderboard-label-inset)
var(--wpds-dimension-padding-md);
overflow: hidden;
color: var(--wpds-color-foreground-interactive-brand);
text-overflow: ellipsis;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: bugfix

Premium Analytics: Line up the column header above leaderboard rows with the row text.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Widgets: Line up the column header above leaderboard rows with the row text.
Loading