Fixes auth_message so that it correctly renders HTML (#7545)

* quick fix

* add changeset

* story

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
Abubakar Abid 2024-02-27 16:16:52 -08:00 committed by GitHub
parent 98aa8082dd
commit 1fa2e914ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,6 @@
---
"@gradio/app": patch
"gradio": patch
---
fix:Fixes `auth_message` so that it correctly renders HTML

View File

@ -25,3 +25,9 @@
name="Login page with auth message"
args={{ auth_message: "Log in to this great gradio app" }}
/>
<Story
name="Login page with HTML auth message"
args={{
auth_message: "<em>Log in to this <strong>great</strong> gradio app</em>"
}}
/>

View File

@ -37,7 +37,7 @@
<Column variant="panel" min_width={480}>
<h2>{$_("login.login")}</h2>
{#if auth_message}
<p class="auth">{auth_message}</p>
<p class="auth">{@html auth_message}</p>
{/if}
{#if space_id}
<p class="auth">