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

Clarify Input docs about removing spacing #4135

Closed
TomJGooding opened this issue Feb 7, 2024 · 2 comments
Closed

Clarify Input docs about removing spacing #4135

TomJGooding opened this issue Feb 7, 2024 · 2 comments

Comments

@TomJGooding
Copy link
Contributor

TomJGooding commented Feb 7, 2024

The Input docs includes a Additional Notes section about removing the spacing:

## Additional Notes
* The spacing around the text content is due to border. To remove it, set `border: none;` in your CSS.

But the default CSS also has a height and a padding, so I think perhaps this is misleading. It also doesn't mention the :focus state which is likely to catch some people out.

DEFAULT_CSS = """
Input {
background: $boost;
color: $text;
padding: 0 2;
border: tall $background;
width: 100%;
height: 3;
}

Copy link

github-actions bot commented Feb 7, 2024

Thank you for your issue. Give us a little time to review it.

PS. You might want to check the FAQ if you haven't done so already.

This is an automated reply, generated by FAQtory

Copy link

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

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

1 participant