Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion apps/ui/src/components/site-list/style.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,6 @@
margin-inline-end: var(--wpds-dimension-padding-sm);
color: var(--wpds-color-fg-content-neutral-weak);
font-size: var(--wpds-typography-font-size-sm);
opacity: 0.55;
transition: opacity 100ms ease;
}

Expand Down
9 changes: 9 additions & 0 deletions apps/ui/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ body:lang( ckb ) [class*='components-'] {
}
}

/* @wordpress/components and @wordpress/dataviews render help text and field
descriptions with hardcoded light-mode colors that don't adapt to the
ThemeProvider's dark palette. Force them to the design-system's weak
foreground so they match the surrounding UI in both schemes. */
.components-base-control__help,
[class*='dataforms-layouts'] [class*='description'] {
color: var( --wpds-color-fg-content-neutral-weak ) !important;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to avoid using !important but was not able to get around it to solve the contrast issues. Open to suggestions if anyone has alternatives to offer

}

/* Universal heading styles derived from the design system's font-size /
line-height ramp. Each level steps down one token (h1 = 2xl, h6 = xs),
keeping the rest of the type contract — family, weight, color, zero
Expand Down
Loading