From f665d57ae206e5add6b58534adc9ab719bc2579b Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Mon, 9 May 2022 10:01:43 -0400 Subject: [PATCH] Change Cancel buttons to error style --- crates/templates/src/res/pages/consent.html | 2 +- crates/templates/src/res/pages/login.html | 2 +- crates/templates/src/res/pages/reauth.html | 2 +- crates/templates/src/res/pages/register.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/templates/src/res/pages/consent.html b/crates/templates/src/res/pages/consent.html index e291318b..e7e96ea9 100644 --- a/crates/templates/src/res/pages/consent.html +++ b/crates/templates/src/res/pages/consent.html @@ -74,7 +74,7 @@ limitations under the License.
{{ back_to_client::link( text="Cancel", - class=button::text_class(), + class=button::plain_error_class(), uri=grant.redirect_uri, mode=grant.response_mode, params=dict(error="access_denied", state=grant.state) diff --git a/crates/templates/src/res/pages/login.html b/crates/templates/src/res/pages/login.html index 1b17b45f..62e490c0 100644 --- a/crates/templates/src/res/pages/login.html +++ b/crates/templates/src/res/pages/login.html @@ -31,7 +31,7 @@ limitations under the License.
{{ back_to_client::link( text="Cancel", - class=button::text_class(), + class=button::plain_error_class(), uri=next.grant.redirect_uri, mode=next.grant.response_mode, params=dict(error="access_denied", state=next.grant.state) diff --git a/crates/templates/src/res/pages/reauth.html b/crates/templates/src/res/pages/reauth.html index a23736be..54b16099 100644 --- a/crates/templates/src/res/pages/reauth.html +++ b/crates/templates/src/res/pages/reauth.html @@ -31,7 +31,7 @@ limitations under the License.
{{ back_to_client::link( text="Cancel", - class=button::text_class(), + class=button::plain_error_class(), uri=next.grant.redirect_uri, mode=next.grant.response_mode, params=dict(error="access_denied", state=next.grant.state) diff --git a/crates/templates/src/res/pages/register.html b/crates/templates/src/res/pages/register.html index 908b4d33..233e5148 100644 --- a/crates/templates/src/res/pages/register.html +++ b/crates/templates/src/res/pages/register.html @@ -33,7 +33,7 @@ limitations under the License.
{{ back_to_client::link( text="Cancel", - class=button::text_class(), + class=button::plain_error_class(), uri=next.grant.redirect_uri, mode=next.grant.response_mode, params=dict(error="access_denied", state=next.grant.state)