Skip to content

Commit 5b7e6e6

Browse files
author
Alice Koreman
committed
small fixes from mistakes made while merging
1 parent f300bd1 commit 5b7e6e6

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/code-view/__tests__/code-view.test.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@ describe("CodeView", () => {
2626
expect(content.getElement()).toHaveTextContent("# Hello World This is a markdown example.");
2727
});
2828

29-
test("correctly renders multi line content", () => {
30-
render(<CodeView content={`# Hello World\n\nThis is a markdown example.`}></CodeView>);
31-
const wrapper = createWrapper()!.findCodeView()!;
32-
const content = wrapper.findContent();
33-
expect(content.getElement()).toHaveTextContent("# Hello World This is a markdown example.");
34-
});
35-
3629
test("correctly renders copy button slot", () => {
3730
render(<CodeView content={"Hello World"} actions={<button>Copy</button>}></CodeView>);
3831
const wrapper = createWrapper()!.findCodeView();

src/code-view/styles.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ $color-background-code-view-dark: #282c34;
2626
border-start-end-radius: cs.$border-radius-tiles;
2727
border-end-start-radius: cs.$border-radius-tiles;
2828
border-end-end-radius: cs.$border-radius-tiles;
29-
padding-top: cs.$space-static-xs;
30-
padding-bottom: cs.$space-static-xs;
29+
padding-block-start: cs.$space-static-xs;
30+
padding-block-end: cs.$space-static-xs;
3131
table-layout: auto;
3232
width: 100%;
3333
border-spacing: 0;

0 commit comments

Comments
 (0)