[code snippet] single line and multi-line bugs
See original GitHub issueThere 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.
-
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.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Overflow issue (horizontal scroll)
modal
component when a modal scrolls vertically.Spec:
Hover issue:
hover-light-ui
token are correct. The color is not displaying correctly on hover for the dark themes.Example of what is happening now:
This is what it should look like: