mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-12 12:40:29 +08:00
Fix the aria-label attrs in gr.Chatbot()
(#6900)
* Fix the aria-label attrs in `gr.Chatbot()` * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
This commit is contained in:
parent
fb9c6cacd7
commit
4511d57c46
6
.changeset/happy-rooms-suffer.md
Normal file
6
.changeset/happy-rooms-suffer.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"@gradio/chatbot": minor
|
||||
"gradio": minor
|
||||
---
|
||||
|
||||
feat:Fix the aria-label attrs in `gr.Chatbot()`
|
@ -173,8 +173,14 @@
|
||||
}}
|
||||
dir={rtl ? "rtl" : "ltr"}
|
||||
aria-label={(j == 0 ? "user" : "bot") +
|
||||
"'s message:' " +
|
||||
message}
|
||||
"'s message: " +
|
||||
(typeof message === "string"
|
||||
? message
|
||||
: `a file of type ${message.file?.mime_type}, ${
|
||||
message.file?.alt_text ??
|
||||
message.file?.orig_name ??
|
||||
""
|
||||
}`)}
|
||||
>
|
||||
{#if typeof message === "string"}
|
||||
<Markdown
|
||||
|
Loading…
x
Reference in New Issue
Block a user