@blocklet/labels 1.6.53 → 1.6.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -668,7 +668,7 @@ function LabelsProvider({ fetchLabels, createLabel, children }) {
668
668
  const getContrastTextColor$1 = (bgcolor) => {
669
669
  try {
670
670
  const ratio = getContrastRatio(bgcolor, "#fff");
671
- return ratio > 3.5 ? "#fff" : "#111";
671
+ return ratio > 2.7 ? "#fff" : "#111";
672
672
  } catch {
673
673
  return "#111";
674
674
  }
@@ -1040,7 +1040,7 @@ function GithubLabelPicker({
1040
1040
  const getContrastTextColor = (bgcolor) => {
1041
1041
  try {
1042
1042
  const ratio = getContrastRatio(bgcolor, "#fff");
1043
- return ratio > 3.5 ? "#fff" : "#111";
1043
+ return ratio > 2.7 ? "#fff" : "#111";
1044
1044
  } catch {
1045
1045
  return "#111";
1046
1046
  }
package/dist/index.umd.js CHANGED
@@ -656,7 +656,7 @@ var __publicField = (obj, key, value) => {
656
656
  const getContrastTextColor$1 = (bgcolor) => {
657
657
  try {
658
658
  const ratio = material.getContrastRatio(bgcolor, "#fff");
659
- return ratio > 3.5 ? "#fff" : "#111";
659
+ return ratio > 2.7 ? "#fff" : "#111";
660
660
  } catch {
661
661
  return "#111";
662
662
  }
@@ -1028,7 +1028,7 @@ var __publicField = (obj, key, value) => {
1028
1028
  const getContrastTextColor = (bgcolor) => {
1029
1029
  try {
1030
1030
  const ratio = material.getContrastRatio(bgcolor, "#fff");
1031
- return ratio > 3.5 ? "#fff" : "#111";
1031
+ return ratio > 2.7 ? "#fff" : "#111";
1032
1032
  } catch {
1033
1033
  return "#111";
1034
1034
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/labels",
3
- "version": "1.6.53",
3
+ "version": "1.6.54",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -28,7 +28,7 @@
28
28
  "access": "public"
29
29
  },
30
30
  "dependencies": {
31
- "@blocklet/translation-input": "1.6.53",
31
+ "@blocklet/translation-input": "1.6.54",
32
32
  "@emotion/css": "^11.10.5",
33
33
  "@emotion/react": "^11.10.5",
34
34
  "@emotion/styled": "^11.10.5",
@@ -80,5 +80,5 @@
80
80
  "resolutions": {
81
81
  "react": "^18.2.0"
82
82
  },
83
- "gitHead": "712af123bd9ef343af6e541ac212a8fe00269eda"
83
+ "gitHead": "51f415225710891f00cea1ecd5c16cc7d729810b"
84
84
  }