mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 20:02:58 +01:00
[FLASK] Fix Snaps UI divider (#19919)
This commit is contained in:
parent
484dae32e8
commit
4918aa4c34
@ -44,7 +44,6 @@ export const safeComponentList = {
|
|||||||
SnapDelineator,
|
SnapDelineator,
|
||||||
Copyable,
|
Copyable,
|
||||||
Spinner,
|
Spinner,
|
||||||
hr: 'hr',
|
|
||||||
SnapUIMarkdown,
|
SnapUIMarkdown,
|
||||||
///: END:ONLY_INCLUDE_IN
|
///: END:ONLY_INCLUDE_IN
|
||||||
};
|
};
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
&__divider {
|
&__divider {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
height: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__panel {
|
&__panel {
|
||||||
|
@ -10,6 +10,7 @@ import {
|
|||||||
OverflowWrap,
|
OverflowWrap,
|
||||||
FontWeight,
|
FontWeight,
|
||||||
TextVariant,
|
TextVariant,
|
||||||
|
BorderColor,
|
||||||
} from '../../../../helpers/constants/design-system';
|
} from '../../../../helpers/constants/design-system';
|
||||||
import { SnapDelineator } from '../snap-delineator';
|
import { SnapDelineator } from '../snap-delineator';
|
||||||
import { useI18nContext } from '../../../../hooks/useI18nContext';
|
import { useI18nContext } from '../../../../hooks/useI18nContext';
|
||||||
@ -53,9 +54,12 @@ export const UI_MAPPING = {
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
divider: () => ({
|
divider: () => ({
|
||||||
element: 'hr',
|
element: 'Box',
|
||||||
props: {
|
props: {
|
||||||
className: 'snap-ui-renderer__divider',
|
className: 'snap-ui-renderer__divider',
|
||||||
|
backgroundColor: BorderColor.borderDefault,
|
||||||
|
marginTop: 2,
|
||||||
|
marginBottom: 2,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
copyable: (props) => ({
|
copyable: (props) => ({
|
||||||
|
Loading…
Reference in New Issue
Block a user