Skip to content

Commit 482f14c

Browse files
committed
ariaLabel, href; fix test
1 parent 00ae5ec commit 482f14c

File tree

2 files changed

+81
-80
lines changed

2 files changed

+81
-80
lines changed

src/marks/waffle.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ export class WaffleY extends BarY {
3434
}
3535

3636
function waffleRender(y) {
37-
return function (index, scales, {href, ...values}, dimensions, context) {
37+
return function (index, scales, values, dimensions, context) {
38+
const {ariaLabel, href, title, ...visualValues} = values;
3839
const {unit, gap, rx, ry, round} = this;
3940
const {document} = context;
4041
const Y1 = values.channels[`${y}1`].value;
@@ -86,7 +87,7 @@ function waffleRender(y) {
8687
.attr("id", (i) => `${patternId}-${i}`)
8788
.select("rect")
8889
.call(applyDirectStyles, this)
89-
.call(applyChannelStyles, this, values)
90+
.call(applyChannelStyles, this, visualValues)
9091
)
9192
.call((g) =>
9293
g
@@ -104,7 +105,7 @@ function waffleRender(y) {
104105
)
105106
.attr("fill", (i) => `url(#${patternId}-${i})`)
106107
.attr("stroke", this.stroke == null ? null : (i) => `url(#${patternId}-${i})`)
107-
.call(applyChannelStyles, this, {href})
108+
.call(applyChannelStyles, this, {ariaLabel, href, title})
108109
)
109110
.node();
110111
};

0 commit comments

Comments
 (0)