Skip to content

Commit

Permalink
Merge pull request #16399 from opf/bug/57031-some-status-indicators-a…
Browse files Browse the repository at this point in the history
…re-missing-a-border

[57031] Some status indicators are missing a border
  • Loading branch information
HDinger authored Aug 12, 2024
2 parents ebd3e47 + 0ab6222 commit 2a7cdd0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/helpers/colors_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,7 @@ def default_variables_dark
end

def default_variables_light
"--lightness-threshold: 0.453;
--border-threshold: 0.75;
--border-alpha: max(0, min(calc((var(--perceived-lightness) - var(--border-threshold)) * 100), 1));"
"--lightness-threshold: 0.453;"
end

def highlighted_background_dark
Expand All @@ -158,7 +156,7 @@ def highlighted_background_light
if mode == "light_high_contrast"
style += "border: 1px solid hsla(var(--color-h), calc(var(--color-s) * 1%), calc((var(--color-l) - 75) * 1%), 1) !important;"
else
style += "border: 1px solid hsla(var(--color-h), calc(var(--color-s) * 1%), calc((var(--color-l) - 25) * 1%), var(--border-alpha)) !important;"
style += "border: 1px solid hsl(var(--color-h), calc(var(--color-s) * 1%), calc((var(--color-l) - 15) * 1%)) !important;"
end

style
Expand Down

0 comments on commit 2a7cdd0

Please sign in to comment.