Skip to content

Commit

Permalink
ariaLabel, href; fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Oct 19, 2024
1 parent 00ae5ec commit 482f14c
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 80 deletions.
7 changes: 4 additions & 3 deletions src/marks/waffle.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ export class WaffleY extends BarY {
}

function waffleRender(y) {
return function (index, scales, {href, ...values}, dimensions, context) {
return function (index, scales, values, dimensions, context) {
const {ariaLabel, href, title, ...visualValues} = values;
const {unit, gap, rx, ry, round} = this;
const {document} = context;
const Y1 = values.channels[`${y}1`].value;
Expand Down Expand Up @@ -86,7 +87,7 @@ function waffleRender(y) {
.attr("id", (i) => `${patternId}-${i}`)
.select("rect")
.call(applyDirectStyles, this)
.call(applyChannelStyles, this, values)
.call(applyChannelStyles, this, visualValues)
)
.call((g) =>
g
Expand All @@ -104,7 +105,7 @@ function waffleRender(y) {
)
.attr("fill", (i) => `url(#${patternId}-${i})`)
.attr("stroke", this.stroke == null ? null : (i) => `url(#${patternId}-${i})`)
.call(applyChannelStyles, this, {href})
.call(applyChannelStyles, this, {ariaLabel, href, title})
)
.node();
};
Expand Down
Loading

0 comments on commit 482f14c

Please sign in to comment.