diff --git a/helpers/colorColumnColor.js b/helpers/colorColumnColor.js index 430a8214..726d3863 100644 --- a/helpers/colorColumnColor.js +++ b/helpers/colorColumnColor.js @@ -16,12 +16,13 @@ const digitWords = [ ]; function getTextColor(customColor, colorClass) { - if ( - (customColor !== undefined && - customColor.textColor !== undefined && - customColor.textColor === "light") || - colorClassWithLightFontList.indexOf(colorClass) > -1 - ) { + if (customColor !== undefined && customColor.textColor !== undefined) { + return customColor.textColor === "light" + ? "s-color-gray-1" + : "s-color-gray-9"; + } + + if (colorClassWithLightFontList.indexOf(colorClass) > -1) { return "s-color-gray-1"; } return "s-color-gray-9"; diff --git a/package-lock.json b/package-lock.json index 06f70e49..c2aad22b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "q-table", - "version": "5.0.7", + "version": "5.0.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "q-table", - "version": "5.0.7", + "version": "5.0.8", "license": "MIT", "dependencies": { "@hapi/boom": "^9.1.3", diff --git a/package.json b/package.json index fe50fbef..f1b8c2a6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "q-table", - "version": "5.0.7", + "version": "5.0.8", "description": "", "main": "index.js", "scripts": {