Skip to content

Commit

Permalink
fix(List): disabld state not properly working
Browse files Browse the repository at this point in the history
  • Loading branch information
matthprost committed Dec 20, 2024
1 parent 8bc5a6e commit b0a6172
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 89 deletions.
5 changes: 5 additions & 0 deletions .changeset/gentle-cars-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ultraviolet/ui": patch
---

Fix `<List />` when disabled state the row doens't change color on hover
6 changes: 3 additions & 3 deletions packages/ui/src/components/List/Row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ export const StyledRow = styled('tr', {
border-color 200ms ease;
}
&:hover::before {
&:not([aria-disabled='true']):hover::before {
border-color: ${({ theme }) => theme.colors.primary.border};
}
&:hover + ${ExpandableWrapper}:before {
&:not([aria-disabled='true']):hover + ${ExpandableWrapper}:before {
border-color: ${({ theme }) => theme.colors.primary.border};
}
Expand All @@ -117,7 +117,7 @@ export const StyledRow = styled('tr', {
${
sentiment === 'neutral'
? `&:hover {
? `&:not([aria-disabled='true']):hover {
border-color: ${theme.colors.primary.border};
box-shadow: ${theme.shadows.hoverPrimary};
}
Expand Down
Loading

0 comments on commit b0a6172

Please sign in to comment.