question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[code snippet] single line and multi-line bugs

See original GitHub issue

There are a couple different bugs with the single line and multi-line code snippets.


Single line:

  • The active state is not showing up when clicking on the copy button. It should be active-ui on click. code snippet active

  • The horizontal scroll does not have a fade style. (This may be resolved with Andrews fix for horizontal tab scrolling.)

  • When the light prop is active, the dark themes have incorrect hover states for the copy button and show more button. They should be using hover-light-ui for hover. (this is also happening for inline code snippet)


Multi-line:

  • The active state is not showing up when clicking on the copy button (same problem with single line above^).
  • When the light prop is active, the dark themes have incorrect hover states for the copy button and show more button. They should be using hover-light-ui for hover.
  • The copy button should have a 8px top and right padding within the field background so that it vertically aligns with the chevron icon in the show more button below it. Artboard

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
laurenmricecommented, Nov 6, 2020

Overflow issue (horizontal scroll)

  • The fade style should be the same as what we currently use for the modal component when a modal scrolls vertically.

Spec:

lg-1056px-16 column

1reaction
laurenmricecommented, Nov 6, 2020

Hover issue:

  • The current values for the hover-light-ui token are correct. The color is not displaying correctly on hover for the dark themes.

Example of what is happening now:

Nov-06-2020 12-34-42


This is what it should look like:

Artboard

Read more comments on GitHub >

github_iconTop Results From Across the Web

Code snippet - Carbon Design System
There are three different variants of code snippets to help cater to varied line length use cases—inline, single line, and multi-line.
Read more >
Multi-line code blocks are strung up into a single line in RSS ...
HTML looks fine, i.e. each line of code is on a separate line inside the <pre> tag: r/bugs - Multi-line code blocks are...
Read more >
How to write a multi-line description for user snippets in VS ...
I tried to create my own user snippet for pascal in VS Code. It worked fine and the multi-line descriptions I wrote were...
Read more >
Bug: linked code snippet, syntax highlighting - OpenCV Forum
the syntax highlighting thinks that a single-line comment spans multiple lines. must be a bug in discourse, or whatever syntax-highlights those ...
Read more >
30553 – Web Inspector: Multiline Code in the Console's ...
Bug 30553 - Web Inspector: Multiline Code in the Console's History Could be ... Current behavior: The Console View shows the top line...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found