Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

ReadContract Text not displayed in light mode #183

Open
mtgoodrich opened this issue Oct 28, 2023 · 0 comments
Open

ReadContract Text not displayed in light mode #183

mtgoodrich opened this issue Oct 28, 2023 · 0 comments

Comments

@mtgoodrich
Copy link

The response in the ReadContract component is not visible in light mode.

A simple fix is to add the 'text-white' class to the pre element. Will not negatively effect dark mode.

    {:then res}
        {#if res}
          <pre class="text-xs md:text-base text-base-content text-white">
            {JSON.stringify(res.data, (k, v) => (typeof v === 'bigint' ? v.toString() : v), 2)}
          </pre>
        {/if}
      {:catch}
Screenshot 2023-10-27 at 5 03 35 PM Screenshot 2023-10-27 at 5 04 12 PM
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant