We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Using the Pico Search component does not reproduce UI elements like in teh pico docs https://picocss.com/docs/group#search
Minimal Reproducible Example
from fasthtml.common import * app, rt = fast_app( hdrs=(picolink,), ) def search_form(): return Search( Input(name="search", type="search", placeholder="search"), Input(type="submit", value="search"),cls="container")
result:
<search class="container"> <input name="search" type="search" placeholder="search"> <input type="submit" value="search"> </search>
Expected behavior Expected:
Visually, the textbox has the correct style but the submit button does not. Expected html per picocss docs
<form role="search"> <input name="search" type="search" placeholder="Search" /> <input type="submit" value="Search" /> </form>
Environment Information Please provide the following version information:
Confirmation Please confirm the following:
Additional context Add any other context about the problem here.
Screenshots If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered:
Workaround:
search_form = Form(method="get", action="/", id="search-form")( Group( Input(type="search", name="search", placeholder="search", value=search_query), Button("Search", type="submit", role="search"), ), )
result HTML:
<form enctype="multipart/form-data" method="get" action="/" id="search-form" name="search-form"> <fieldset role="group"> <input type="search" name="search" placeholder="search"> <button type="submit" role="search">Search</button> </fieldset> </form>
Sorry, something went wrong.
I just validated this error here, while also confirming that other fasthml.components work:
fasthml.components
from fasthtml.common import * from fasthtml.components import Search app, rt = fast_app() @rt def index(): return Titled("Search", co.Search(Input(type="search"), Button("Search")), Grid(Div('one'), Div('2')) ) serve()
No branches or pull requests
Describe the bug
Using the Pico Search component does not reproduce UI elements like in teh pico docs https://picocss.com/docs/group#search
Minimal Reproducible Example
result:
Expected behavior
Expected:
Visually, the textbox has the correct style but the submit button does not.
Expected html per picocss docs
Environment Information
Please provide the following version information:
Confirmation
Please confirm the following:
Additional context
Add any other context about the problem here.
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: