Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text fields in articles aren't visible #15

Open
getaaron opened this issue Jan 16, 2023 · 1 comment
Open

Text fields in articles aren't visible #15

getaaron opened this issue Jan 16, 2023 · 1 comment

Comments

@getaaron
Copy link

The background color of an article is the same as the background color of a text field, and the text field doesn't have a border, so the text field becomes invisible when putting a text field inside an article:

image

One possible approach is to add a border, for example in this diff:

-input, select, textarea {font-size: 1em; color:var(--c4); background: var(--c2); border: 0; padding: 0.6em}
+input, select, textarea {font-size: 1em; color:var(--c4); background: var(--c2); border: 1px solid var(--c4); padding: 0.6em}

which adds a border:

image

However, I didn't check any other use cases so it's likely this is undesirable in some way.

If it's helpful, here's some reproduction HTML

<section>
  <article>
    <form action="/weather" accept-charset="UTF-8" method="post">
      <h2>New weather search</h2>
      <div>
        <label for="zip_code">Zip code</label>
        <input type="text" name="zip" id="zip">
        <div>
          <input type="submit" name="commit" value="Search Weather" data-disable-with="Search Weather">
        </div>
      </div>
    </form>
  </article>
</section>
@FinancialMistake
Copy link

FinancialMistake commented Feb 2, 2024

I may not be using this properly, but as far as I can see, the text has no margin which makes it harder to read. Adding perhaps a few pixels of margin could improve it unless I'm missing something
Screenshot 2024-02-02 at 23 45 04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants