Skip to content

Commit

Permalink
fix: fix alternating color style
Browse files Browse the repository at this point in the history
  • Loading branch information
clementprevot committed Mar 26, 2024
1 parent d908a9e commit 8d0a92f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/fractal/src/styles/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,29 +330,29 @@ export const alternatingBgColorLightClassNames = cj(
'[&_.alternatee:nth-child(5n+1):hover]:bg-decorative-pink-90',
'[&_.alternatee:nth-child(1):focus]:bg-decorative-pink-90',
'[&_.alternatee:nth-child(5n+1):focus]:bg-decorative-pink-90',
'[&_.alternatee:nth-child(5n+1)[data-highlighted="true"]]:bg-decorative-pink-90',
'[&_.alternatee:nth-child(5n+1)[data-highlighted]]:bg-decorative-pink-90',

'[&_.alternatee:nth-child(2):hover]:bg-decorative-yellow-90',
'[&_.alternatee:nth-child(5n+2):hover]:bg-decorative-yellow-90',
'[&_.alternatee:nth-child(2):focus]:bg-decorative-yellow-90',
'[&_.alternatee:nth-child(5n+2):focus]:bg-decorative-yellow-90',
'[&_.alternatee:nth-child(5n+2)[data-highlighted="true"]]:bg-decorative-yellow-90',
'[&_.alternatee:nth-child(5n+2)[data-highlighted]]:bg-decorative-yellow-90',

'[&_.alternatee:nth-child(3):hover]:bg-decorative-green-90',
'[&_.alternatee:nth-child(5n+3):hover]:bg-decorative-green-90',
'[&_.alternatee:nth-child(3):focus]:bg-decorative-green-90',
'[&_.alternatee:nth-child(5n+3):focus]:bg-decorative-green-90',
'[&_.alternatee:nth-child(5n+3)[data-highlighted="true"]]:bg-decorative-green-90',
'[&_.alternatee:nth-child(5n+3)[data-highlighted]]:bg-decorative-green-90',

'[&_.alternatee:nth-child(4):hover]:bg-decorative-blue-90',
'[&_.alternatee:nth-child(5n+4):hover]:bg-decorative-blue-90',
'[&_.alternatee:nth-child(4):focus]:bg-decorative-blue-90',
'[&_.alternatee:nth-child(5n+4):focus]:bg-decorative-blue-90',
'[&_.alternatee:nth-child(5n+4)[data-highlighted="true"]]:bg-decorative-blue-90',
'[&_.alternatee:nth-child(5n+4)[data-highlighted]]:bg-decorative-blue-90',

'[&_.alternatee:nth-child(5):hover]:bg-decorative-purple-90',
'[&_.alternatee:nth-child(5n+5):hover]:bg-decorative-purple-90',
'[&_.alternatee:nth-child(5):focus]:bg-decorative-purple-90',
'[&_.alternatee:nth-child(5n+5):focus]:bg-decorative-purple-90',
'[&_.alternatee:nth-child(5n+5)[data-highlighted="true"]]:bg-decorative-purple-90',
'[&_.alternatee:nth-child(5n+5)[data-highlighted]]:bg-decorative-purple-90',
)

0 comments on commit 8d0a92f

Please sign in to comment.