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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accordion label is not displayed when theme is set to monochrome #8255

Closed
1 task done
kash203 opened this issue May 10, 2024 · 1 comment 路 Fixed by #8284
Closed
1 task done

Accordion label is not displayed when theme is set to monochrome #8255

kash203 opened this issue May 10, 2024 · 1 comment 路 Fixed by #8284
Labels
bug Something isn't working

Comments

@kash203
Copy link

kash203 commented May 10, 2024

Describe the bug

Accordion label is not displayed when theme is set to monochrome.

Have you searched existing issues? 馃攷

  • I have searched and found no existing issues

Reproduction

import gradio as gr
def greet(name):
    return "Hello " + name + "!"

# with gr.Blocks() as demo:
with gr.Blocks(theme=gr.themes.Monochrome()) as demo:
    with gr.Accordion("label text"):
        name = gr.Textbox(label="Name")
    output = gr.Textbox(label="Output Box")
    greet_btn = gr.Button("Greet")
    greet_btn.click(fn=greet, inputs=name, outputs=output, api_name="greet")

if __name__ == "__main__":
    demo.launch()

Screenshot

monochrome theme

image

default theme

image

Logs

No response

System Info

Gradio Environment Information:
------------------------------
Operating System: Linux
gradio version: 4.29.0
gradio_client version: 0.16.1

------------------------------------------------
gradio dependencies in your environment:

aiofiles: 23.2.1
altair: 5.2.0
fastapi: 0.109.0
ffmpy: 0.3.1
gradio-client==0.16.1 is not installed.
httpx: 0.24.1
huggingface-hub: 0.20.3
importlib-resources: 6.1.1
jinja2: 3.1.2
markupsafe: 2.1.3
matplotlib: 3.7.2
numpy: 1.25.1
orjson: 3.9.12
packaging: 23.2
pandas: 2.0.3
pillow: 10.0.0
pydantic: 2.5.3
pydub: 0.25.1
python-multipart: 0.0.9
pyyaml: 6.0.1
ruff: 0.4.3
semantic-version: 2.10.0
tomlkit==0.12.0 is not installed.
typer: 0.12.3
typing-extensions: 4.9.0
urllib3: 2.0.3
uvicorn: 0.27.0
authlib; extra == 'oauth' is not installed.
itsdangerous; extra == 'oauth' is not installed.


gradio_client dependencies in your environment:

fsspec: 2023.12.2
httpx: 0.24.1
huggingface-hub: 0.20.3
packaging: 23.2
typing-extensions: 4.9.0
websockets: 11.0.3

Severity

I can work around it

@kash203 kash203 added the bug Something isn't working label May 10, 2024
@kash203
Copy link
Author

kash203 commented May 22, 2024

Thank you for your prompt response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant