Skip to content

Commit fbcd012

Browse files
Pollepsjoepio
authored andcommitted
#824 Make select box consistent across browsers
1 parent b47684f commit fbcd012

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

browser/data-browser/src/components/forms/BasicSelect.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,22 @@ const SelectWrapper = styled.span<{ disabled: boolean }>`
2626
padding-inline: 0.2rem;
2727
background-color: ${p =>
2828
p.disabled ? p.theme.colors.bg1 : p.theme.colors.bg};
29+
30+
// Because we remove the appearance of the select for compatibility reasons, we have to add back the chevron.
31+
position: relative;
32+
&:after {
33+
content: '▾';
34+
position: absolute;
35+
right: 0.5rem;
36+
top: 0.5rem;
37+
pointer-events: none;
38+
color: ${p => p.theme.colors.textLight};
39+
}
2940
`;
3041

3142
const Select = styled.select`
3243
cursor: pointer;
44+
appearance: none;
3345
width: 100%;
3446
border: none;
3547
outline: none;

0 commit comments

Comments
 (0)