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,