Skip to content

Commit

Permalink
fix: BackgroundColor length threshold updated to >=
Browse files Browse the repository at this point in the history
  • Loading branch information
NateBaldwinDesign committed May 5, 2022
1 parent 7a7ab99 commit 54fe5e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/contrast-colors/backgroundcolor.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class BackgroundColor extends Color {

// Manually cap the background array at 100 colors, then add white back to the end
// since it sometimes gets removed.
if(bgColorArrayFiltered.length > 101) {
if(bgColorArrayFiltered.length >= 101) {
bgColorArrayFiltered.length = 100;
bgColorArrayFiltered.push('#ffffff');
}
Expand Down

0 comments on commit 54fe5e5

Please sign in to comment.