Skip to content

Commit

Permalink
fix(List/Matrix View): 🐛 Show aria-label on opposite side that leaf i…
Browse files Browse the repository at this point in the history
…s open (fix #225)
  • Loading branch information
SkepticMystic committed Dec 29, 2021
1 parent e367d60 commit 76bbda8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 42 deletions.
2 changes: 1 addition & 1 deletion src/Components/Lists.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
on:mouseover={(e) =>
hoverPreview(e, matrixView, impliedItem.to)}
aria-label={impliedItem.parent ?? ""}
aria-label-position="left"
aria-label-position={settings.rlLeaf ? "left" : "right"}
>
{impliedItem.alt ??
dropPathNDendron(impliedItem.to, settings)}
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Matrix.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
aria-label={impliedItem.parent
? "" + impliedItem.parent
: ""}
aria-label-position="left"
aria-label-position={settings.rlLeaf ? "left" : "right"}
>
{impliedItem.alt ??
dropPathNDendron(impliedItem.to, settings)}
Expand Down
12 changes: 7 additions & 5 deletions src/MatrixView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,13 @@ export default class MatrixView extends ItemView {

// !SECTION

iu = this.removeDuplicateImplied(ru, iu);
is = this.removeDuplicateImplied(rs, is);
id = this.removeDuplicateImplied(rd, id);
iN = this.removeDuplicateImplied(rn, iN);
ip = this.removeDuplicateImplied(rp, ip);
[iu, is, id, iN, ip] = [
this.removeDuplicateImplied(ru, iu),
this.removeDuplicateImplied(rs, is),
this.removeDuplicateImplied(rd, id),
this.removeDuplicateImplied(rn, iN),
this.removeDuplicateImplied(rp, ip),
];

const iSameNoDup: internalLinkObj[] = [];
is.forEach((impSib) => {
Expand Down
35 changes: 0 additions & 35 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1089,41 +1089,6 @@ export default class BCPlugin extends Plugin {
);
});
}
// frontms.forEach((frontm) => {
// const { file } = frontm;
// const basename = getDVBasename(file);
// // It could have the node from another means already, but that doesn't mean it should return...
// // if (mainG.hasNode(basename)) return;

// const splits = basename.split(dendronNoteDelimiter);
// if (splits.length < 2) return;

// const reversed = splits.reverse();
// reversed.forEach((split, i) => {
// const currSlice = reversed
// .slice(i)
// .reverse()
// .join(dendronNoteDelimiter);
// const nextSlice = reversed
// .slice(i + 1)
// .reverse()
// .join(dendronNoteDelimiter);
// if (!nextSlice) return;

// const sourceOrder = this.getSourceOrder(frontm);
// const targetOrder = this.getTargetOrder(frontms, nextSlice);

// this.populateMain(
// mainG,
// currSlice,
// dendronNoteField,
// nextSlice,
// sourceOrder,
// targetOrder,
// true
// );
// });
// });
}

getTargetOrder = (frontms: dvFrontmatterCache[], target: string) =>
Expand Down

0 comments on commit 76bbda8

Please sign in to comment.