From 1e300c64de3d67798d4ee3214da61a102d699cd3 Mon Sep 17 00:00:00 2001 From: Giamir Buoncristiani Date: Wed, 18 Oct 2023 13:47:01 +0200 Subject: [PATCH] fix(typo): rules messages --- .changeset/little-drinks-drop.md | 5 +++++ src/index.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/little-drinks-drop.md diff --git a/.changeset/little-drinks-drop.md b/.changeset/little-drinks-drop.md new file mode 100644 index 0000000..466d679 --- /dev/null +++ b/.changeset/little-drinks-drop.md @@ -0,0 +1,5 @@ +--- +"axe-apca": patch +--- + +Fix typo in rules messages diff --git a/src/index.ts b/src/index.ts index 2788e82..692aa4d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -90,7 +90,7 @@ const generateColorContrastAPCAConformanceCheck = ( bgColor: bgColor.toHexString(), fontSize: `${((parseFloat(fontSize) * 72) / 96).toFixed( 1, - )}pt (${fontSize}px)`, + )}pt (${parseFloat(fontSize)}px)`, fontWeight: fontWeight, apcaContrast: Math.round(apcaContrast * 100) / 100, apcaThreshold: apcaThreshold,