Skip to content

Commit

Permalink
πŸ› fix: highlight scroll error (#37)
Browse files Browse the repository at this point in the history
* πŸ› fix: highlight scroll error

* πŸ“Έ chore: update snapshot

---------

Co-authored-by: rdmclin2 <rdmclin2@gmial.com>
  • Loading branch information
rdmclin2 and rdmclin2 committed Jun 18, 2023
1 parent 2639071 commit 5abf169
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Highlight/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const useStyles = createStyles(
typeStylish,
css`
position: relative;
overflow: auto;
margin: 0;
border-radius: ${token.borderRadius}px;
transition: background-color 100ms ${token.motionEaseOut};
Expand Down
6 changes: 6 additions & 0 deletions tests/__snapshots__/demo.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -16369,6 +16369,7 @@ exports[`<Highlight /> > renders basic.tsx correctly 1`] = `
background-color: #2b303b;
border: 1px solid #2b303b;
position: relative;
overflow: auto;
margin: 0;
border-radius: 6px;
-webkit-transition: background-color 100ms cubic-bezier(0.215, 0.61, 0.355, 1);
Expand Down Expand Up @@ -16728,6 +16729,7 @@ exports[`<Highlight /> > renders lineNumber.tsx correctly 1`] = `
background-color: #fafafa;
border: 1px solid #fafafa;
position: relative;
overflow: auto;
margin: 0;
border-radius: 6px;
-webkit-transition: background-color 100ms cubic-bezier(0.215, 0.61, 0.355, 1);
Expand Down Expand Up @@ -17125,6 +17127,7 @@ exports[`<Highlight /> > renders theme.tsx correctly 1`] = `
background-color: #fafafa;
border: 1px solid #fafafa;
position: relative;
overflow: auto;
margin: 0;
border-radius: 6px;
-webkit-transition: background-color 100ms cubic-bezier(0.215, 0.61, 0.355, 1);
Expand Down Expand Up @@ -18464,6 +18467,7 @@ exports[`<ProEditor /> > renders buttonAssets.tsx correctly 1`] = `
background-color: #fafafa;
border: 1px solid #fafafa;
position: relative;
overflow: auto;
margin: 0;
border-radius: 6px;
-webkit-transition: background-color 100ms cubic-bezier(0.215, 0.61, 0.355, 1);
Expand Down Expand Up @@ -20154,6 +20158,7 @@ exports[`<ProEditor /> > renders controlledPresence.tsx correctly 1`] = `
background-color: #fafafa;
border: 1px solid #fafafa;
position: relative;
overflow: auto;
margin: 0;
border-radius: 6px;
-webkit-transition: background-color 100ms cubic-bezier(0.215, 0.61, 0.355, 1);
Expand Down Expand Up @@ -21758,6 +21763,7 @@ exports[`<ProEditor /> > renders defaultAssets.tsx correctly 1`] = `
background-color: #2b303b;
border: 1px solid #2b303b;
position: relative;
overflow: auto;
margin: 0;
border-radius: 6px;
-webkit-transition: background-color 100ms cubic-bezier(0.215, 0.61, 0.355, 1);
Expand Down

0 comments on commit 5abf169

Please sign in to comment.