Skip to content

Commit

Permalink
[FLASK] Fix Snaps UI divider (#19919)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding authored Jul 7, 2023
1 parent 484dae3 commit 4918aa4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export const safeComponentList = {
SnapDelineator,
Copyable,
Spinner,
hr: 'hr',
SnapUIMarkdown,
///: END:ONLY_INCLUDE_IN
};
1 change: 1 addition & 0 deletions ui/components/app/snaps/snap-ui-renderer/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

&__divider {
width: 100%;
height: 1px;
}

&__panel {
Expand Down
6 changes: 5 additions & 1 deletion ui/components/app/snaps/snap-ui-renderer/snap-ui-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
OverflowWrap,
FontWeight,
TextVariant,
BorderColor,
} from '../../../../helpers/constants/design-system';
import { SnapDelineator } from '../snap-delineator';
import { useI18nContext } from '../../../../hooks/useI18nContext';
Expand Down Expand Up @@ -53,9 +54,12 @@ export const UI_MAPPING = {
},
}),
divider: () => ({
element: 'hr',
element: 'Box',
props: {
className: 'snap-ui-renderer__divider',
backgroundColor: BorderColor.borderDefault,
marginTop: 2,
marginBottom: 2,
},
}),
copyable: (props) => ({
Expand Down

0 comments on commit 4918aa4

Please sign in to comment.