style: sticky index column (#566)

* style: sticky index column
This commit is contained in:
Carlos Valente
2023-11-02 20:59:30 +01:00
committed by GitHub
parent 2f09d27813
commit 1e90ce4c1d
3 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ type ColourCombination = {
* @param bgColour
* @return {{backgroundColor, color: string}}
*/
export const getAccessibleColour = (bgColour: string): ColourCombination => {
export const getAccessibleColour = (bgColour?: string): ColourCombination => {
if (bgColour) {
try {
const textColor = Color(bgColour).isLight() ? 'black' : '#fffffa';