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

Radio corner rounding doesnt apply in gr.Group #8673

Open
1 task done
tripleS-Dev opened this issue Jun 30, 2024 · 1 comment
Open
1 task done

Radio corner rounding doesnt apply in gr.Group #8673

tripleS-Dev opened this issue Jun 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@tripleS-Dev
Copy link

Describe the bug

The corners of the gr.Radio within gr.Group are not rounded. This issue makes the interface look quite unappealing when using Gradio for a B2C site.

Have you searched existing issues? 馃攷

  • I have searched and found no existing issues

Reproduction

import gradio as gr

theme = gr.themes.Soft(
    primary_hue="purple",
    secondary_hue="violet",
    spacing_size="sm",
    radius_size="lg",
)

with gr.Blocks(theme=theme) as main:
    with gr.Group():
        radio = gr.Radio(choices=['1','2','3'])
    radio2 = gr.Radio(choices=['1', '2', '3'])

main.launch()

Screenshot

鞀ろ伂毽办兎 2024-06-30 210825

Logs

No error code

System Info

(.venv) PS C:\Users\hj6ch\PycharmProjects\objektifygit\objektify112\objektify2> gradio environment
Gradio Environment Information:
------------------------------
Operating System: Windows
gradio version: 4.37.2
gradio_client version: 1.0.2

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

aiofiles: 23.2.1
altair: 5.3.0
fastapi: 0.111.0
ffmpy: 0.3.2
gradio-client==1.0.2 is not installed.
httpx: 0.27.0
huggingface-hub: 0.23.0
importlib-resources: 6.4.0
jinja2: 3.1.4
markupsafe: 2.1.5
matplotlib: 3.8.4
numpy: 1.26.4
orjson: 3.10.3
packaging: 24.0
pandas: 2.2.2
pillow: 10.3.0
pydantic: 2.7.1
pydub: 0.25.1
python-multipart: 0.0.9
pyyaml: 6.0.1
ruff: 0.4.4
semantic-version: 2.10.0
tomlkit==0.12.0 is not installed.
typer: 0.12.3
typing-extensions: 4.11.0
urllib3: 2.2.1
uvicorn: 0.29.0
authlib; extra == 'oauth' is not installed.
itsdangerous; extra == 'oauth' is not installed.


gradio_client dependencies in your environment:

fsspec: 2024.3.1
httpx: 0.27.0
huggingface-hub: 0.23.0
packaging: 24.0
typing-extensions: 4.11.0
websockets: 11.0.3

Severity

I can work around it

@tripleS-Dev tripleS-Dev added the bug Something isn't working label Jun 30, 2024
@abidlabs
Copy link
Member

abidlabs commented Jul 1, 2024

Just noting that this also occurs with the default theme:

import gradio as gr

with gr.Blocks() as main:
    with gr.Group():
        radio = gr.Radio(choices=['1','2','3'])
    radio2 = gr.Radio(choices=['1', '2', '3'])

main.launch()

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

No branches or pull requests

2 participants