Skip to content

Commit 5de680d

Browse files
authored
Merge pull request #735 from plotly/more-browser-fixes
More browser fixes
2 parents c27e5a9 + 9b62f8a commit 5de680d

File tree

4 files changed

+28
-4
lines changed

4 files changed

+28
-4
lines changed

src/styles/components/fields/_field.scss

+8
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,14 @@
9595
}
9696
}
9797

98+
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
99+
.field {
100+
&__widget {
101+
flex-basis: auto;
102+
}
103+
}
104+
}
105+
98106
.field .field {
99107
border-top: none;
100108
.field__no-title {

src/styles/components/widgets/_colorscalepicker.scss

+6
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ $colorscalepicker-width: 215px;
2424
.colorscalePickerContainer input:focus {
2525
outline: none;
2626
}
27+
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
28+
.colorscalePickerContainer {
29+
display: inline;
30+
}
31+
}
32+
2733
.colorscalePickerBottomContainer {
2834
padding-right: 3px;
2935
}

src/styles/components/widgets/_numeric-input.scss

+8-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
color: var(--color-text-base);
2525
}
2626

27+
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
28+
.numeric-input__wrapper {
29+
flex-basis: auto;
30+
}
31+
}
32+
2733
.numeric-input__number {
2834
display: inline-block;
2935
border: var(--border-default);
@@ -34,8 +40,8 @@
3440
white-space: nowrap;
3541
text-align: left;
3642
border-radius: var(--border-radius-small);
37-
padding: var(--spacing-quarter-unit) var(--spacing-quarter-unit)
38-
var(--spacing-quarter-unit) var(--spacing-half-unit);
43+
padding: var(--spacing-quarter-unit) var(--spacing-quarter-unit) var(--spacing-quarter-unit)
44+
var(--spacing-half-unit);
3945
width: 62px;
4046
vertical-align: middle;
4147
font-size: inherit;

src/styles/components/widgets/_trace-type-selector.scss

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
$item-size: 90px;
22
$image-size: 60px;
3+
$label-height: 34px;
4+
$row-height: $image-size + $label-height + $default-half-spacing-unit +
5+
$default-quarter-spacing-unit;
36

47
.trace-grid {
58
display: grid;
69
grid-template-columns: repeat(4, 1fr);
7-
@media (max-width: 1000px) {
10+
@media (max-width: 860px) {
811
grid-template-columns: repeat(2, 1fr);
912
}
1013
&__column {
@@ -141,6 +144,7 @@ $image-size: 60px;
141144
display: grid;
142145
grid-gap: 0;
143146
grid-template-columns: repeat(2, $item-size);
147+
grid-template-rows: repeat(2, $row-height);
144148
flex-grow: 1;
145149
width: 100%;
146150
padding: 0 var(--spacing-half-unit) var(--spacing-half-unit);
@@ -267,7 +271,7 @@ $image-size: 60px;
267271
&__label {
268272
font-weight: var(--font-weight-semibold);
269273
width: $item-size * 0.8;
270-
height: 34px;
274+
height: $label-height;
271275
margin-top: var(--spacing-quarter-unit);
272276
color: var(--color-text-base);
273277
text-transform: capitalize;

0 commit comments

Comments
 (0)