Skip to content

Commit

Permalink
yarn format
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jun 6, 2024
1 parent 3ef12df commit 4a4bcfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sources/__tests__/accessible-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ describe("options.getComputedStyle", () => {
});
it("is not called more than necessary", () => {
const container = renderIntoDocument(
"<button><span><span>nested</span>button</span></button>"
"<button><span><span>nested</span>button</span></button>",
);

computeAccessibleName(container.querySelector("button"));
Expand Down
6 changes: 3 additions & 3 deletions sources/accessible-name-and-description.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function asFlatString(s: string): FlatString {
function isHidden(
node: Node,
getComputedStyleImplementation: typeof window.getComputedStyle,
maybeNodeStyle: { current: CSSStyleDeclaration | null }
maybeNodeStyle: { current: CSSStyleDeclaration | null },
): node is Element {
if (!isElement(node)) {
return false;
Expand Down Expand Up @@ -363,7 +363,7 @@ export function computeTextAlternative(
isReferenced: boolean;
// if we called getComputedStyle earlier in the stack, we can pass it here to avoid calling it again
style: CSSStyleDeclaration | null;
}
},
): string {
let accumulatedText = "";
if (isElement(node) && computedStyleSupportsPseudoElements) {
Expand Down Expand Up @@ -567,7 +567,7 @@ export function computeTextAlternative(
isEmbeddedInLabel: boolean;
isReferenced: boolean;
recursion: boolean;
}
},
): string {
if (consultedNodes.has(current)) {
return "";
Expand Down

0 comments on commit 4a4bcfb

Please sign in to comment.