mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fixing dropdown caret for dark and light mode (#13911)
This commit is contained in:
parent
a6924b1224
commit
8e0f71a008
@ -22,9 +22,9 @@ const Dropdown = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="dropdown-container">
|
<div className={classnames('dropdown', className)}>
|
||||||
<select
|
<select
|
||||||
className={classnames('dropdown', className)}
|
className="dropdown__select"
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
title={title}
|
title={title}
|
||||||
onChange={_onChange}
|
onChange={_onChange}
|
||||||
@ -39,10 +39,7 @@ const Dropdown = ({
|
|||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</select>
|
</select>
|
||||||
<IconCaretDown
|
<IconCaretDown size={16} className="dropdown__icon-caret-down" />
|
||||||
size={16}
|
|
||||||
className="dropdown-container__icon-caret-down"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -1,32 +1,33 @@
|
|||||||
.dropdown {
|
.dropdown {
|
||||||
@include H6;
|
|
||||||
|
|
||||||
appearance: none;
|
|
||||||
color: var(--color-text-default);
|
|
||||||
|
|
||||||
// TODO: remove these after getting autoprefixer working in Storybook
|
|
||||||
-moz-appearance: none;
|
|
||||||
-webkit-appearance: none;
|
|
||||||
border: 1px solid var(--color-border-default);
|
|
||||||
border-radius: 4px;
|
|
||||||
background-color: var(--color-background-default);
|
|
||||||
color: var(--color-text-default);
|
|
||||||
padding: 8px 32px 8px 16px;
|
|
||||||
|
|
||||||
[dir='rtl'] & {
|
|
||||||
padding: 8px 16px 8px 32px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-container {
|
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|
||||||
|
&__select {
|
||||||
|
appearance: none;
|
||||||
|
// TODO: remove these after getting autoprefixer working in Storybook
|
||||||
|
-moz-appearance: none;
|
||||||
|
-webkit-appearance: none;
|
||||||
|
|
||||||
|
@include H6;
|
||||||
|
|
||||||
|
color: var(--color-text-default);
|
||||||
|
border: 1px solid var(--color-border-default);
|
||||||
|
border-radius: 4px;
|
||||||
|
background-color: var(--color-background-default);
|
||||||
|
padding: 8px 40px 8px 16px;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
[dir='rtl'] & {
|
||||||
|
padding: 8px 16px 8px 40px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&__icon-caret-down {
|
&__icon-caret-down {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 16px;
|
right: 16px;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
|
pointer-events: none;
|
||||||
|
|
||||||
[dir='rtl'] & {
|
[dir='rtl'] & {
|
||||||
left: 16px;
|
left: 16px;
|
||||||
|
@ -172,7 +172,7 @@ export default class AdvancedTab extends PureComponent {
|
|||||||
<div className="settings-page__content-item">
|
<div className="settings-page__content-item">
|
||||||
<div className="settings-page__content-item-col">
|
<div className="settings-page__content-item-col">
|
||||||
<Button
|
<Button
|
||||||
type="warning"
|
type="danger"
|
||||||
large
|
large
|
||||||
className="settings-tab__button--red"
|
className="settings-tab__button--red"
|
||||||
onClick={(event) => {
|
onClick={(event) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user