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

Make FileInput Button adhere to the design #6475

Closed
hoxbro opened this issue Mar 11, 2024 · 0 comments · Fixed by #6479
Closed

Make FileInput Button adhere to the design #6475

hoxbro opened this issue Mar 11, 2024 · 0 comments · Fixed by #6479
Labels
type: enhancement Minor feature or improvement to an existing feature

Comments

@hoxbro
Copy link
Member

hoxbro commented Mar 11, 2024

import panel as pn

pn.extension(design="bootstrap")

file_input_stylesheet = """
input[type="file"].bk-input {
  padding-left: 10px;
}
input[type="file"]::file-selector-button {
  background: var(--surface-color);
  color: var(--surface-text-color);
}
"""

pn.widgets.FileInput().servable()
pn.widgets.Button(name="Button").servable()
pn.widgets.FileInput(stylesheets=[file_input_stylesheet]).servable()

image

@hoxbro hoxbro added TRIAGE Default label for untriaged issues type: enhancement Minor feature or improvement to an existing feature and removed TRIAGE Default label for untriaged issues labels Mar 11, 2024
@hoxbro hoxbro changed the title Make FileInput adhere to the design Make FileInput Button adhere to the design Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Minor feature or improvement to an existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant