From 3febb0fb0e9bd1cc7b07b6def5976932dc285193 Mon Sep 17 00:00:00 2001 From: Bianca <76073842+biancalaube@users.noreply.github.com> Date: Wed, 30 Oct 2024 10:20:05 -0400 Subject: [PATCH] DOP-4939: Uncopyable code blocks can't scroll horizontally on Firefox (#1297) --- src/components/Code/Code.js | 1 - tests/unit/__snapshots__/Code.test.js.snap | 2 -- tests/unit/__snapshots__/CodeIO.test.js.snap | 1 - tests/unit/__snapshots__/Collapsible.test.js.snap | 1 - tests/unit/__snapshots__/LiteralInclude.test.js.snap | 1 - tests/unit/__snapshots__/ReleaseSpecification.test.js.snap | 1 - 6 files changed, 7 deletions(-) diff --git a/src/components/Code/Code.js b/src/components/Code/Code.js index 66f0dae4a..7ccace080 100644 --- a/src/components/Code/Code.js +++ b/src/components/Code/Code.js @@ -119,7 +119,6 @@ const Code = ({ > div { border-top-left-radius: ${captionBorderRadius}; border-top-right-radius: ${captionBorderRadius}; - display: grid; border-color: ${palette.gray.light2}; .dark-theme & { diff --git a/tests/unit/__snapshots__/Code.test.js.snap b/tests/unit/__snapshots__/Code.test.js.snap index 2335305e7..afbc4f727 100644 --- a/tests/unit/__snapshots__/Code.test.js.snap +++ b/tests/unit/__snapshots__/Code.test.js.snap @@ -28,7 +28,6 @@ exports[`renders correctly 1`] = ` .emotion-0>div { border-top-left-radius: 0px; border-top-right-radius: 0px; - display: grid; border-color: #E8EDEB; } @@ -434,7 +433,6 @@ exports[`renders correctly when none is passed in as a language 1`] = ` .emotion-0>div { border-top-left-radius: 12px; border-top-right-radius: 12px; - display: grid; border-color: #E8EDEB; } diff --git a/tests/unit/__snapshots__/CodeIO.test.js.snap b/tests/unit/__snapshots__/CodeIO.test.js.snap index 04655d8a4..a5e6ffc0a 100644 --- a/tests/unit/__snapshots__/CodeIO.test.js.snap +++ b/tests/unit/__snapshots__/CodeIO.test.js.snap @@ -45,7 +45,6 @@ exports[`CodeIO renders correctly 1`] = ` .emotion-1>div { border-top-left-radius: 0px; border-top-right-radius: 0px; - display: grid; border-color: #E8EDEB; } diff --git a/tests/unit/__snapshots__/Collapsible.test.js.snap b/tests/unit/__snapshots__/Collapsible.test.js.snap index 2e740c6bd..a1fd0eef9 100644 --- a/tests/unit/__snapshots__/Collapsible.test.js.snap +++ b/tests/unit/__snapshots__/Collapsible.test.js.snap @@ -223,7 +223,6 @@ exports[`collapsible component renders all the content in the options and childr .emotion-12>div { border-top-left-radius: 12px; border-top-right-radius: 12px; - display: grid; border-color: #E8EDEB; } diff --git a/tests/unit/__snapshots__/LiteralInclude.test.js.snap b/tests/unit/__snapshots__/LiteralInclude.test.js.snap index 5cca67363..e95c01c5f 100644 --- a/tests/unit/__snapshots__/LiteralInclude.test.js.snap +++ b/tests/unit/__snapshots__/LiteralInclude.test.js.snap @@ -28,7 +28,6 @@ exports[`renders correctly 1`] = ` .emotion-0>div { border-top-left-radius: 12px; border-top-right-radius: 12px; - display: grid; border-color: #E8EDEB; } diff --git a/tests/unit/__snapshots__/ReleaseSpecification.test.js.snap b/tests/unit/__snapshots__/ReleaseSpecification.test.js.snap index e88c89c34..96a436191 100644 --- a/tests/unit/__snapshots__/ReleaseSpecification.test.js.snap +++ b/tests/unit/__snapshots__/ReleaseSpecification.test.js.snap @@ -28,7 +28,6 @@ exports[`renders correctly 1`] = ` .emotion-0>div { border-top-left-radius: 12px; border-top-right-radius: 12px; - display: grid; border-color: #E8EDEB; }