Skip to content

Commit fa4d4dd

Browse files
authored
Merge pull request #116 from CLIMB-TRE/development
Bug fixes
2 parents 5677d3a + bb4a71b commit fa4d4dd

5 files changed

Lines changed: 27 additions & 17 deletions

File tree

lib/Onyx.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ $theme-colors: map-merge($theme-colors, $custom-theme);
4242
@import "../node_modules/bootstrap/scss/modal";
4343
@import "../node_modules/bootstrap/scss/spinners";
4444

45+
// Fix pagination disabled state
46+
.page-item.disabled .page-link {
47+
color: var(--bs-pagination-disabled-color) !important;
48+
pointer-events: none !important;
49+
background-color: var(--bs-pagination-disabled-bg) !important;
50+
border-color: var(--bs-pagination-disabled-border-color) !important;
51+
}
52+
4553
.modal-backdrop {
4654
position: fixed;
4755
top: 0;

lib/components/Dropdowns.tsx

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,20 @@ const Option = (props: OptionProps) => {
3434
const splitLabel = props.label.split("|", 2);
3535

3636
return (
37-
<small>
38-
<components.Option {...props}>
39-
{splitLabel.length > 0 && <div>{splitLabel[0]}</div>}
40-
{splitLabel.length > 1 && (
41-
<div
42-
style={{ color: "var(--onyx-dropdown-option-description-color)" }}
43-
>
44-
{splitLabel[1]}
45-
</div>
46-
)}
47-
</components.Option>
48-
</small>
37+
<div className="onyx">
38+
<small>
39+
<components.Option {...props}>
40+
{splitLabel.length > 0 && <div>{splitLabel[0]}</div>}
41+
{splitLabel.length > 1 && (
42+
<div
43+
style={{ color: "var(--onyx-dropdown-option-description-color)" }}
44+
>
45+
{splitLabel[1]}
46+
</div>
47+
)}
48+
</components.Option>
49+
</small>
50+
</div>
4951
);
5052
};
5153

lib/components/Table.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ function TableOptions(props: TableOptionsProps) {
367367
};
368368

369369
return (
370-
<Pagination size="sm">
370+
<>
371371
<ExportModal
372372
{...props}
373373
defaultFileExtension=".csv"
@@ -407,7 +407,7 @@ function TableOptions(props: TableOptionsProps) {
407407
Export to CSV/TSV
408408
</Dropdown.Item>
409409
</DropdownButton>
410-
</Pagination>
410+
</>
411411
);
412412
}
413413

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "climb-onyx-gui",
3-
"version": "0.16.0",
3+
"version": "0.16.1",
44
"description": "Onyx Graphical User Interface",
55
"keywords": [
66
"gui",

0 commit comments

Comments
 (0)