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.

New Inline Field Highlighting

See original GitHub issue

Describe the bug With the new feature enable, no colors are applied.

To Reproduce Steps to reproduce the behavior:

  1. Add inline fields to text, tasks,… using the form [key:: value] and (key:: value).
  2. Enable Inline Field Highlighting in Dataview settings.
  3. Go to another note and return (this step is necessary to the new feature is applied).
  4. Switch to preview mode and no background is applied to the rendered key and/or value.

Screenshots Edit image

Preview image

Expected behavior Something similar to this: image

These colors seems not be applied:

.dataview.inline-field-key {
    border-top-left-radius: 250px;
    border-bottom-left-radius: 250px;
    padding-left: 16px;
    padding-right: 8px;
    font-family: var(--font-monospace);
    background-color: var(--background-inline-code);
    color: var(--text-nav-selected);
}
.dataview.inline-field-value {
    border-top-right-radius: 250px;
    border-bottom-right-radius: 250px;
    padding-left: 8px;
    padding-right: 16px;
    font-family: var(--font-monospace);
    background-color: var(--background-tag);
    color: var(--text-nav-selected);
.dataview.inline-field-standalone-value {
    border-radius: 250px;
    padding-left: 16px;
    padding-right: 16px;
    font-family: var(--font-monospace);
    background-color: var(--background-tag);
    color: var(--text-nav-selected);
}

Are these colors ‘injected’ by plugin in root Obsidian style or are colors already in default configuration?

Desktop:

  • OS: macOS
  • Obsidian Version 0.12.15
  • Dataview Version 0.4.16

Thank you.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
blacksmithgucommented, Oct 16, 2021

Thanks for the report - both of the themes I tested on were from the same developer who used these non-standard names. I really should have verified on the default theme!

0reactions
AB1908commented, Apr 21, 2022

Ah good point

Read more comments on GitHub >

github_iconTop Results From Across the Web

Inline Field refactoring | JetBrains Rider Documentation
This refactoring helps you replace a field with its value and remove its declaration. For obvious reasons, the refactoring can be applied to...
Read more >
line breaking - Highlighted code inline - LaTeX Stack Exchange
One limitation is that the highlighted text will cause minted to crash if it needs to be wrapped: you need to take care...
Read more >
Highlighting a row thru Inline style - how to check if property ...
In our application we also have two properties for a price field - numeric and text. We are working on a requirement to...
Read more >
Inline elements - HTML: HyperText Markup Language | MDN
Note: An inline element does not start on a new line and only takes up as ... <div> The following span is an...
Read more >
Inline code syntax highlighting in GitHub markdown?
Standard markdown also supports inline codeblocks by wrapping text in `single graves` . Is there any way to add syntax highlighting to these ......
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 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