Skip to content

Commit

Permalink
fix(Table): sort button hover color (#3655)
Browse files Browse the repository at this point in the history
  • Loading branch information
MEsteves22 committed Aug 30, 2023
1 parent 5a062c7 commit 11f3575
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const { staticClasses, useClasses } = createClasses("HvTableHeader", {
boxShadow: "none",
backgroundColor: "transparent",
"&:hover": {
backgroundColor: "red",
backgroundColor: theme.table.sortButtonHoverColor,
},
},
},
Expand Down
1 change: 1 addition & 0 deletions packages/styles/src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ const componentsSpec: DeepString<HvThemeComponents> = {
cellPaddingBottom: "string",
cellListBorder: "string",
cellBorder: "string",
sortButtonHoverColor: "string",
},
calendar: {
border: "string",
Expand Down
1 change: 1 addition & 0 deletions packages/styles/src/themes/ds3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ const ds3 = makeTheme((theme: HvTheme) => ({
cellPaddingBottom: `calc(${theme.space.xs} - 3px )`,
cellListBorder: `solid 2px ${theme.colors.atmo2}`,
cellBorder: `solid 1px ${theme.colors.atmo4}`,
sortButtonHoverColor: "transparent",
},
calendar: {
border: "none",
Expand Down
1 change: 1 addition & 0 deletions packages/styles/src/themes/ds5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ const ds5 = makeTheme((theme: HvTheme) => ({
cellPaddingBottom: `calc(${theme.space.xs} - 3px )`,
cellListBorder: "none",
cellBorder: `solid 1px ${theme.colors.atmo4}`,
sortButtonHoverColor: theme.colors.primary_20,
},
calendar: {
border: `1px solid ${theme.colors.secondary_80}`,
Expand Down
1 change: 1 addition & 0 deletions packages/styles/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ export type HvThemeComponents = {
cellPaddingBottom: string;
cellListBorder: string;
cellBorder: string;
sortButtonHoverColor: string;
};
calendar: {
border: string;
Expand Down

0 comments on commit 11f3575

Please sign in to comment.