Skip to content

Commit b6bbb51

Browse files
authored
Merge pull request #1846 from dxc-technology/jialecl-actionsCell-dropdown
Applying table theme to action dropdown
2 parents 1c9e3f9 + 176910a commit b6bbb51

File tree

1 file changed

+33
-32
lines changed

1 file changed

+33
-32
lines changed

lib/src/table/DropdownTheme.jsx

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { componentTokens } from "../common/variables";
12
export default {
23
dropdown: {
34
// Breadcrumbs tokens
@@ -16,37 +17,37 @@ export default {
1617
optionPaddingRight: "16px",
1718

1819
// Dropdown tokens
19-
buttonBackgroundColor: "#ffffff",
20-
hoverButtonBackgroundColor: "#f2f2f2",
21-
activeButtonBackgroundColor: "#cccccc",
22-
buttonFontFamily: "Open Sans, sans-serif",
23-
buttonFontSize: "1rem",
24-
buttonFontStyle: "normal",
25-
buttonFontWeight: "400",
26-
buttonFontColor: "#000000",
27-
buttonIconSpacing: "10px",
28-
buttonIconColor: "#5f249f",
29-
disabledColor: "#999999",
30-
disabledButtonBackgroundColor: "transparent",
31-
disabledBorderColor: "transparent",
32-
optionBackgroundColor: "#ffffff",
33-
hoverOptionBackgroundColor: "#f2f2f2",
34-
activeOptionBackgroundColor: "#cccccc",
35-
optionFontFamily: "Open Sans, sans-serif",
36-
optionFontStyle: "normal",
37-
optionFontWeight: "400",
38-
optionFontColor: "#000000",
39-
optionIconSize: "20px",
40-
optionIconSpacing: "10px",
41-
optionIconColor: "#000000",
42-
caretIconSize: "24px",
43-
caretIconColor: "#000000",
44-
caretIconSpacing: "12px",
45-
borderRadius: "4px",
46-
borderStyle: "none",
47-
borderThickness: "0px",
48-
borderColor: "transparent",
49-
scrollBarThumbColor: "#666666",
50-
scrollBarTrackColor: "#cccccc",
20+
buttonBackgroundColor: componentTokens.table.actionBackgroundColor,
21+
hoverButtonBackgroundColor: componentTokens.table.hoverActionBackgroundColor,
22+
activeButtonBackgroundColor: componentTokens.table.activeActionBackgroundColor,
23+
buttonFontFamily: componentTokens.dropdown.buttonFontFamily,
24+
buttonFontSize: componentTokens.dropdown.buttonFontSize,
25+
buttonFontStyle: componentTokens.dropdown.buttonFontStyle,
26+
buttonFontWeight: componentTokens.dropdown.buttonFontWeight,
27+
buttonFontColor: componentTokens.dropdown.buttonFontColor,
28+
buttonIconSpacing: componentTokens.dropdown.buttonIconSpacing,
29+
buttonIconColor: componentTokens.table.actionIconColor,
30+
disabledColor: componentTokens.table.disabledActionIconColor,
31+
disabledButtonBackgroundColor: componentTokens.table.disabledActionBackgroundColor,
32+
disabledBorderColor: componentTokens.dropdown.disabledBorderColor,
33+
optionBackgroundColor: componentTokens.dropdown.optionBackgroundColor,
34+
hoverOptionBackgroundColor: componentTokens.dropdown.hoverOptionBackgroundColor,
35+
activeOptionBackgroundColor: componentTokens.dropdown.activeOptionBackgroundColor,
36+
optionFontFamily: componentTokens.dropdown.optionFontFamily,
37+
optionFontStyle: componentTokens.dropdown.optionFontStyle,
38+
optionFontWeight: componentTokens.dropdown.optionFontWeight,
39+
optionFontColor: componentTokens.dropdown.optionFontColor,
40+
optionIconSize: componentTokens.dropdown.optionIconSize,
41+
optionIconSpacing: componentTokens.dropdown.optionIconSpacing,
42+
optionIconColor: componentTokens.dropdown.optionIconColor,
43+
caretIconSize: componentTokens.dropdown.caretIconSize,
44+
caretIconColor: componentTokens.dropdown.caretIconColor,
45+
caretIconSpacing: componentTokens.dropdown.caretIconSpacing,
46+
borderRadius: componentTokens.dropdown.borderRadius,
47+
borderStyle: componentTokens.dropdown.borderStyle,
48+
borderThickness: componentTokens.dropdown.borderThickness,
49+
borderColor: componentTokens.dropdown.borderColor,
50+
scrollBarThumbColor: componentTokens.dropdown.scrollBarThumbColor,
51+
scrollBarTrackColor: componentTokens.dropdown.scrollBarTrackColor,
5152
},
5253
};

0 commit comments

Comments
 (0)