Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

fix(a11y): raise muted small text to AA contrast

joshistoasted20815eed0b
diff --git a/invokeai/frontend/webv2/src/features/models/ui/shared/SourceListItem.tsx b/invokeai/frontend/webv2/src/features/models/ui/shared/SourceListItem.tsx
index 5fb4494a1f..78aa9d9aa4 100644
--- a/invokeai/frontend/webv2/src/features/models/ui/shared/SourceListItem.tsx
+++ b/invokeai/frontend/webv2/src/features/models/ui/shared/SourceListItem.tsx
@@ -34,7 +34,9 @@ export const SourceListItem = ({
{badges}
</HStack>
{description ? (
- <Text color="fg.subtle" fontSize="2xs" lineClamp={2}>
+ // `fg.subtle` at this size only reaches 3.56:1 on the panel surface,
+ // short of WCAG AA. `fg.muted` clears 4.5:1.
+ <Text color="fg.muted" fontSize="2xs" lineClamp={2}>
{description}
</Text>
) : null}
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerGroupSection.tsx b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerGroupSection.tsx
index 0f7b597659..135eb7f25d 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerGroupSection.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerGroupSection.tsx
@@ -135,7 +135,10 @@ export const LayerGroupSection = ({
/>
</IconButton>
<Text
- color="fg.subtle"
+ // `fg.subtle` at this size reaches only 3.56:1 on the panel surface,
+ // short of WCAG AA. The axe gate catches it intermittently, because
+ // the header has to be scrolled into view to be scanned.
+ color="fg.muted"
cursor="pointer"
flex="1"
fontSize="2xs"