Skip to content

Commit 5175660

Browse files
committed
🐛 Fix palette access in health check module
Update palette access to use get_colors() method - Change direct colors access to palette.get_colors() method call - Maintain backward compatibility with existing color validation - Fix potential issues with palette initialization in health checks
1 parent 913f082 commit 5175660

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/silkcircuit/health.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ function M.check()
117117

118118
-- Check contrast compliance
119119
start("WCAG Contrast Compliance")
120-
local colors = require("silkcircuit.palette").colors
120+
local palette = require("silkcircuit.palette")
121+
local colors = palette.get_colors()
121122
local color_utils = require("silkcircuit.utils.colors")
122123
local issues = color_utils.validate_theme_contrast(colors)
123124

0 commit comments

Comments
 (0)