Skip to content

Commit 6a57084

Browse files
authored
Cross browser fix for modal scroll and age range input stepper. (#1174)
1 parent 694f0e6 commit 6a57084

File tree

5 files changed

+42
-18
lines changed

5 files changed

+42
-18
lines changed

spa/src/app/files/facet/facet-age-range/facet-age-range-form/facet-age-range-form.component.scss

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,6 @@
66
*/
77
@import "../../../../site/theme/cgl.vars";
88

9-
10-
:host {
11-
display: block;
12-
width: 282px; /* Min width */
13-
}
14-
15-
/* Facet double width of a standard facet */
16-
:host-context(.facet-double-wide) {
17-
:host {
18-
width: 396px;
19-
}
20-
}
21-
22-
239
/* Facet age range form */
2410
form {
2511

@@ -90,12 +76,18 @@ form {
9076
}
9177
}
9278

79+
/* Input - hide spinner - chrome, safari */
9380
input[type=number]::-webkit-inner-spin-button,
9481
input[type=number]::-webkit-outer-spin-button {
9582
-webkit-appearance: none;
9683
margin: 0;
9784
}
9885

86+
/* Input - hide spinner - firefox */
87+
input[type=number] {
88+
-moz-appearance: textfield;
89+
}
90+
9991
/* Actions */
10092
.actions {
10193
display: flex;

spa/src/app/files/project-download-manifest-modal-container/project-download-manifest-modal-container.component.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,16 @@
1515
max-width: 100vw !important; /** Override Material default that is added as inline style */
1616
min-width: 100vw;
1717
min-height: calc(100vh - 60px);
18-
overflow: scroll;
18+
-ms-overflow-style: none; // IE 10+, scrollbar hidden
19+
overflow-y: auto; // Firefox, scrollbar hidden unless actively scrolling
20+
scrollbar-width: none; // Firefox, scrollbar hidden
1921
top: 0;
22+
23+
// Safari and Chrome, scrollbar hidden
24+
&::-webkit-scrollbar {
25+
display: none;
26+
width: 0;
27+
}
2028
}
2129

2230
.panel-invisible .mat-dialog-container {

spa/src/app/files/project-download-matrix-modal-container/project-download-matrix-modal-container.component.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,16 @@
1515
max-width: 100vw !important; /** Override Material default that is added as inline style */
1616
min-width: 100vw;
1717
min-height: calc(100vh - 60px);
18-
overflow: scroll;
18+
-ms-overflow-style: none; // IE 10+, scrollbar hidden
19+
overflow-y: auto; // Firefox, scrollbar hidden unless actively scrolling
20+
scrollbar-width: none; // Firefox, scrollbar hidden
1921
top: 0;
22+
23+
// Safari and Chrome, scrollbar hidden
24+
&::-webkit-scrollbar {
25+
display: none;
26+
width: 0;
27+
}
2028
}
2129

2230
.panel-invisible .mat-dialog-container {

spa/src/app/files/releases/release-files-modal-container/release-files-modal-container.component.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,16 @@
1515
max-width: 100vw !important; /* Override Material default that is added as inline style */
1616
min-width: 100vw;
1717
min-height: calc(100vh - 60px);
18-
overflow: scroll;
18+
-ms-overflow-style: none; // IE 10+, scrollbar hidden
19+
overflow-y: auto; // Firefox, scrollbar hidden unless actively scrolling
20+
scrollbar-width: none; // Firefox, scrollbar hidden
1921
top: 0;
22+
23+
// Safari and Chrome, scrollbar hidden
24+
&::-webkit-scrollbar {
25+
display: none;
26+
width: 0;
27+
}
2028
}
2129

2230
.panel-invisible .mat-dialog-container {

spa/src/app/files/releases/visualizations-modal-container/release-visualizations-modal-container.component.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,16 @@
1515
max-width: 100vw !important; /* Override Material default that is added as inline style */
1616
min-width: 100vw;
1717
min-height: calc(100vh - 60px);
18-
overflow: scroll;
18+
-ms-overflow-style: none; // IE 10+, scrollbar hidden
19+
overflow-y: auto; // Firefox, scrollbar hidden unless actively scrolling
20+
scrollbar-width: none; // Firefox, scrollbar hidden
1921
top: 0;
22+
23+
// Safari and Chrome, scrollbar hidden
24+
&::-webkit-scrollbar {
25+
display: none;
26+
width: 0;
27+
}
2028
}
2129

2230
.panel-invisible .mat-dialog-container {

0 commit comments

Comments
 (0)