Skip to content

Code cleanup and UI improvements - #838

Merged
poppastring merged 3 commits into
mainfrom
theme-updates-plus-security-fix
May 18, 2026
Merged

poppastring merged 3 commits into
mainfrom
theme-updates-plus-security-fix

Conversation

@poppastring

Copy link
Copy Markdown
Owner

PR Classification

Code cleanup and UI improvements to authorization handling and visual contrast.

PR Summary

This pull request delegates authorization for the default credentials warning to a parent tag helper and enhances UI contrast for better readability.

  • DefaultCredentialsWarningTagHelper: Removes internal user/role checks, relying on dasblog-authorized for authorization.
  • _Layout.cshtml: Wraps in a
    for proper authorization scoping.
  • custom.css: Adds styles to improve text contrast in post content and archive navigation buttons on dark backgrounds.
  • _BlogPageSummary.cshtml: Adjusts jumbotron spacing for improved layout.

Move authorization logic from DefaultCredentialsWarningTagHelper to the dasblog-authorized tag helper in _Layout.cshtml. This centralizes authorization checks and simplifies the warning tag helper.
Set p element text color to white in custom.css. Add mb-4 class to jumbotron in _BlogPageSummary.cshtml for improved spacing.
Removed forced white text from paragraphs, added .dbc-post-content class to ensure post excerpts remain legible in summary cards, and enhanced archive month navigation button styles for better contrast and accessibility in dark mode.
@poppastring
poppastring merged commit c964b9b into main May 18, 2026
3 checks passed
@poppastring
poppastring deleted the theme-updates-plus-security-fix branch May 18, 2026 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant