Why the botton can not apply css?,but textbox works great
import gradio as gr
import numpy as np

css = """
#warning {background-color: #FFCCCB} 
.feedback textarea {font-size: 64px !important}
"""

with gr.Blocks(css=css) as demo:
    box1 = gr.Button(value="Good Job", elem_classes="feedback")
    box2 = gr.Textbox(value="Failure", elem_id="warning",
                      elem_classes="feedback")



if __name__ == "__main__":
    demo.launch(inbrowser=True)
2023-06-25T01:06:47Z
this css works changing the button style and the textareacss = """
#warning {background-color: #FFCCCB} 
.feedback {font-size: 64px !important;}
.feedback textarea {font-size: 64px !important;}
"""
2023-06-25T01:28:15Z
Thanks.it works! Could you tell me how it works? what’s the diff between textbox and button??
2023-06-25T02:15:54Z
I’m confused and trying to figure out why some CSS styles are applied on certain components but not others.Button: font → ok, color->failLabel: font → fail, color → okTextbox: font->ok, color ->okI can’t find图片1599×1059 62.3 KB