Skip to content

A platform for community discussion. Free, open, simple.

UX: Foundation feedback (#37653)

Jordan Vidrinee935ed63b28a
diff --git a/app/assets/stylesheets/common/base/uc-modernize-foundation-theme.scss b/app/assets/stylesheets/common/base/uc-modernize-foundation-theme.scss
index 4c5927b3bc2..989ad32edcf 100644
--- a/app/assets/stylesheets/common/base/uc-modernize-foundation-theme.scss
+++ b/app/assets/stylesheets/common/base/uc-modernize-foundation-theme.scss
@@ -2,6 +2,8 @@
.uc-modernize-foundation-theme {
--d-logo-height: 2.3em;
+ --sidebar-section-wrapper-padding: var(--space-3) var(--space-2)
+ var(--space-4);
--d-nav-underline-height: var(--space-half);
--d-button-default-bg-color: transparent;
--input-border-color: var(--primary-200);
@@ -18,11 +20,9 @@
--d-topic-list-data-font-size: var(--font-down-1);
--d-topic-list-header-text-color: var(--primary-900);
--metadata-color: var(--primary-900);
- --topic-title-font-weight: 500;
--d-sidebar-active-background: var(--primary-100);
--d-content-background: var(--secondary);
--category-badge-border-radius: calc(var(--d-border-radius) / 2);
- --category-badge-title-color: var(--primary);
--category-boxes-description-text-color: var(--primary-700);
--d-category-boxes-gap: var(--space-4);
--d-category-border-box-width: 1px;
@@ -31,7 +31,6 @@
--d-sidebar-link-color: var(--primary-800);
--d-sidebar-link-icon-color: var(--primary-800);
--d-sidebar-active-font-weight: 600;
- --title-color--read: var(--primary-700);
// new variables
--webkit-font-smoothing: antialiased;
@@ -71,10 +70,6 @@
padding: 0.2143em !important;
}
- .btn-icon {
- padding-inline: var(--space-2);
- }
-
.c-footer button {
padding-block: 0.75rem !important;
height: unset !important;
@@ -150,6 +145,10 @@
padding: var(--space-1);
}
+ .sidebar-section-link-wrapper .sidebar-section-link-prefix .prefix-square {
+ border-radius: var(--d-border-radius);
+ }
+
.dropdown-menu__item .btn {
display: inline-flex;
gap: var(--d-sidebar-section-link-prefix-margin-right);
@@ -258,7 +257,7 @@
.topic-list .num .badge-posts,
.topic-list .heatmap-high {
- font-weight: 400;
+ font-weight: 500;
}
.topic-list-header .topic-list-data:first-of-type {
@@ -332,6 +331,10 @@
}
}
+ .extra-info-wrapper .title-wrapper {
+ font-size: var(--font-down-1);
+ }
+
.header-sidebar-toggle button,
.d-header-icons .icon {
width: 2em;
@@ -364,6 +367,7 @@
.category-boxes .category-box,
.category-boxes-with-topics .category-box {
+ --category-badge-title-color: var(--primary);
--category-badge-color: var(--content-border-color) !important;
}
diff --git a/app/assets/stylesheets/wcag.scss b/app/assets/stylesheets/wcag.scss
index 71b6c12788c..d90c8e31d9f 100644
--- a/app/assets/stylesheets/wcag.scss
+++ b/app/assets/stylesheets/wcag.scss
@@ -354,3 +354,47 @@ html {
svg {
color: var(--tertiary);
}
+
+// Modernize Foundation Theme specific WCAG overrides
+html.discourse-no-touch .uc-modernize-foundation-theme {
+ .btn-default {
+ .d-icon {
+ color: var(--d-button-default-icon-color);
+ }
+
+ &:hover,
+ &.btn-hover,
+ &:focus {
+ .d-icon {
+ color: var(--d-button-default-icon-color--hover);
+ }
+ }
+ }
+
+ // Create topic button - ensure icon matches text color
+ #create-topic .d-icon {
+ color: var(--d-button-default-icon-color);
+ }
+
+ // Composer button bar icons should match the modernize theme
+ .d-editor-button-bar .btn-icon.btn-default .d-icon {
+ color: var(--d-button-default-icon-color);
+
+ &:hover {
+ color: var(--d-button-default-icon-color--hover);
+ }
+ }
+}
+
+html .uc-modernize-foundation-theme {
+ // Header icons with modernize theme colors
+ .d-header-icons .d-icon,
+ .header-sidebar-toggle button .d-icon {
+ color: var(--d-sidebar-link-icon-color);
+ }
+
+ // Topic list header consistency
+ table th {
+ color: var(--d-topic-list-header-text-color);
+ }
+}