Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: bold sidebar header when admin sidebar is disabled #26993

Merged
merged 1 commit into from
May 13, 2024

Conversation

lis2
Copy link
Contributor

@lis2 lis2 commented May 13, 2024

Recently a bug was introduced when the admin sidebar section was made bold.

When the admin sidebar is disabled, we display the original sidebar in the admin panel. In that case, an incorrect CSS rule is executed.

.admin-area .sidebar-wrapper {
  background-color: var(--d-sidebar-admin-background);
  .sidebar-section-header-text {
    font-weight: bold;
  }
}

Bug in this PR: #26801

To solve it, a custom CSS class with a panel key was added which will allow granular customisations.

The demo that admin sidebar has still bold headers
Screenshot 2024-05-13 at 10 55 07 AM

The demo that the original sidebar is ok
Screenshot 2024-05-13 at 10 55 20 AM

Recently a bug was introduced when the admin sidebar section was made bold.

When the admin sidebar is disabled, we display the original sidebar in the admin panel. In that case, an incorrect CSS rule is executed.
```CSS
.admin-area .sidebar-wrapper {
  background-color: var(--d-sidebar-admin-background);
  .sidebar-section-header-text {
    font-weight: bold;
  }
}
```
Bug in this PR: discourse#26801

To solve it, a custom CSS class with a panel key was added which will allow granular customisations.
Copy link
Contributor

@martin-brennan martin-brennan left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

@lis2 lis2 merged commit 74f24d5 into discourse:main May 13, 2024
16 checks passed
@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/sidebar-section-headers-bold-when-in-admin-area/307354/5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants