Skip to content

Commit c92941f

Browse files
authored
move inline styles to a style script (#485)
1 parent 393ba0e commit c92941f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/components/SettingsTable.tsx

+8-2
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,10 @@ const SettingsTable =
3434
overflow: "hidden",
3535
textOverflow: "ellipsis",
3636
whiteSpace: "nowrap",
37-
color: "white",
3837
verticalAlign: "middle",
3938
};
4039
const featureStyle: React.CSSProperties = {
4140
textAlign: "left",
42-
color: "white",
4341
verticalAlign: "middle",
4442
};
4543
const thBorder: React.CSSProperties = {
@@ -55,6 +53,14 @@ const SettingsTable =
5553

5654
return (
5755
<>
56+
<style>
57+
{/* override blueprint styles while still allowing 3rd party theming */}
58+
{`
59+
.rm-extensions-settings table.bp3-html-table th {
60+
color: white;
61+
}
62+
`}
63+
</style>
5864
<HTMLTable
5965
bordered={false}
6066
style={{ ...noBorder }}

0 commit comments

Comments
 (0)