1
0
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:
Frederik Bolding 2023-07-07 15:10:58 +02:00 committed by GitHub
parent 484dae32e8
commit 4918aa4c34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -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
}; };

View File

@ -9,6 +9,7 @@
&__divider { &__divider {
width: 100%; width: 100%;
height: 1px;
} }
&__panel { &__panel {

View File

@ -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) => ({