From f0f69bdb19b4f21d4974d31b65911efbe9875d7a Mon Sep 17 00:00:00 2001 From: 3x1t Date: Mon, 17 Oct 2022 02:47:27 +0200 Subject: [PATCH] Changed CSS selector of CustomButton from "focus" to "active" to promote desired behavior on click --- .../05-events/06-dom-event-forwarding/app-a/CustomButton.svelte | 2 +- .../05-events/06-dom-event-forwarding/app-b/CustomButton.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/site/content/tutorial/05-events/06-dom-event-forwarding/app-a/CustomButton.svelte b/site/content/tutorial/05-events/06-dom-event-forwarding/app-a/CustomButton.svelte index d7292a3717..b068238e60 100644 --- a/site/content/tutorial/05-events/06-dom-event-forwarding/app-a/CustomButton.svelte +++ b/site/content/tutorial/05-events/06-dom-event-forwarding/app-a/CustomButton.svelte @@ -15,7 +15,7 @@ background: #CBD5E1; color: #475569; } - button:focus { + button:active { background: #94A3B8; color: #F1F5F9; } diff --git a/site/content/tutorial/05-events/06-dom-event-forwarding/app-b/CustomButton.svelte b/site/content/tutorial/05-events/06-dom-event-forwarding/app-b/CustomButton.svelte index 141ea14980..76da543a8b 100644 --- a/site/content/tutorial/05-events/06-dom-event-forwarding/app-b/CustomButton.svelte +++ b/site/content/tutorial/05-events/06-dom-event-forwarding/app-b/CustomButton.svelte @@ -15,7 +15,7 @@ background: #CBD5E1; color: #475569; } - button:focus { + button:active { background: #94A3B8; color: #F1F5F9; }