🐛 Fix typography in Password and Notifications settings (#13218)

Use the DS heading component for the page and section titles.

Closes #13216

AI-assisted-by: claude-opus-5-5
This commit is contained in:
Belén Albeza 2026-11-20 19:05:09 +01:00 committed by GitHub
parent e0194ce60a
commit 5cd9080482
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 41 additions and 18 deletions

View File

@ -12,6 +12,8 @@
[app.main.data.profile :as dp]
[app.main.store :as st]
[app.main.ui.components.forms :as fm]
[app.main.ui.ds.foundations.typography :as t]
[app.main.ui.ds.foundations.typography.heading :refer [heading*]]
[app.util.dom :as dom]
[app.util.i18n :as i18n :refer [tr]]
[rumext.v2 :as mf]))
@ -49,9 +51,18 @@
:on-submit on-submit
:form form}
[:div {:class (stl/css :form-container)}
[:h2 (tr "dashboard.settings.notifications.title")]
[:h3 (tr "dashboard.settings.notifications.dashboard.title")]
[:h4 (tr "dashboard.settings.notifications.dashboard-comments.title")]
[:> heading* {:level 2
:typography t/title-large
:class (stl/css :page-title)}
(tr "dashboard.settings.notifications.title")]
[:> heading* {:level 3
:typography t/headline-small
:class (stl/css :section-title)}
(tr "dashboard.settings.notifications.dashboard.title")]
[:> heading* {:level 4
:typography t/headline-small
:class (stl/css :group-title)}
(tr "dashboard.settings.notifications.dashboard-comments.title")]
[:div {:class (stl/css :fields-row)}
[:& fm/radio-buttons
{:options [{:label (tr "dashboard.settings.notifications.dashboard-comments.all") :value "all"}
@ -60,8 +71,14 @@
:name :dashboard-comments
:class (stl/css :radio-btns)}]]
[:h3 (tr "dashboard.settings.notifications.email.title")]
[:h4 (tr "dashboard.settings.notifications.email-comments.title")]
[:> heading* {:level 3
:typography t/headline-small
:class (stl/css :section-title)}
(tr "dashboard.settings.notifications.email.title")]
[:> heading* {:level 4
:typography t/headline-small
:class (stl/css :group-title)}
(tr "dashboard.settings.notifications.email-comments.title")]
[:div {:class (stl/css :fields-row)}
[:& fm/radio-buttons
{:options [{:label (tr "dashboard.settings.notifications.email-comments.all") :value "all"}
@ -70,7 +87,10 @@
:name :email-comments
:class (stl/css :radio-btns)}]]
[:h4 (tr "dashboard.settings.notifications.email-invites.title")]
[:> heading* {:level 4
:typography t/headline-small
:class (stl/css :group-title)}
(tr "dashboard.settings.notifications.email-invites.title")]
[:div {:class (stl/css :fields-row)}
[:& fm/radio-buttons
{:options [{:label (tr "dashboard.settings.notifications.email-invites.all") :value "all"}

View File

@ -30,15 +30,12 @@
gap: 0;
}
.form-container {
h3 {
color: var(--color-foreground-secondary);
}
h4 {
font-size: deprecated.$fs-11;
color: var(--color-foreground-primary);
text-transform: uppercase;
margin: deprecated.$s-12;
}
.section-title {
color: var(--color-foreground-secondary);
margin-block: var(--sp-s);
}
.group-title {
color: var(--color-foreground-primary);
margin: var(--sp-m);
}

View File

@ -12,6 +12,8 @@
[app.main.data.profile :as udu]
[app.main.store :as st]
[app.main.ui.components.forms :as fm]
[app.main.ui.ds.foundations.typography :as t]
[app.main.ui.ds.foundations.typography.heading :refer [heading*]]
[app.util.dom :as dom]
[app.util.i18n :as i18n :refer [tr]]
[rumext.v2 :as mf]))
@ -123,5 +125,9 @@
[:section {:class (stl/css :dashboard-settings)
:aria-labelledby "password-section-title"}
[:div {:class (stl/css :form-container)}
[:h2 {:id "password-section-title"} (tr "dashboard.password-change")]
[:> heading* {:level 2
:typography t/title-large
:class (stl/css :page-title)
:id "password-section-title"}
(tr "dashboard.password-change")]
[:> password-form*]]])